Skip to content

Commit

Permalink
feat: #619 iMapBC public link (#621)
Browse files Browse the repository at this point in the history
* Update text for iMapBC

* Add link above detail map to open imapBC.

* Dummy changes to trigger pipeline.

* Add ghost-button border-radius.

* Remove height from banner-top so it does not limit flex container on small device.
  • Loading branch information
ianliuwk1019 authored Apr 29, 2024
1 parent 389bcfb commit 9645c1b
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 14 deletions.
2 changes: 1 addition & 1 deletion admin/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ bootstrapApplication(AppComponent, {
...routesProviders
]
})
.catch((err) => console.error(err));
.catch((err) => console.error(err));
1 change: 0 additions & 1 deletion api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,3 @@ These are the steps to generate the client library used by the frontend componen
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

2 changes: 1 addition & 1 deletion public/src/app/about/about.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h2>Related Information and Links</h2>
<section>
<div>
<h3>iMapBC</h3>
<p>View and analyze hundreds of map data layers compiled from across the B.C. Government and other public sector agencies.</p>
<p>View and analyze hundreds of map data layers compiled from across the B.C. Government, and other public sector agencies. This includes the FOM layers, which can be overlayed onto other layers, allowing the user to see FOM features from all published FOMs on one comprehensive map.</p>
</div>
<a class="btn btn-primary" href="https://maps.gov.bc.ca/ess/hm/imap4m/" target="_blank" rel="noopener"
style="text-transform: none">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,26 @@ <h3>Description</h3>
</ul>
<br/>

<h3>Geographic Shape Information
<span>({{projectSpatialDetail.length > 1 ? projectSpatialDetail.length + " Shapes": projectSpatialDetail.length + " Shape"}})</span>
</h3>

<app-details-map
[projectSpatialDetail]="projectSpatialDetail">
</app-details-map>
<div class="details-map-container">
<div class="banner-top">
<h3>Geographic Shape Information
<span>({{projectSpatialDetail.length > 1 ? projectSpatialDetail.length + " Shapes": projectSpatialDetail.length + " Shape"}})</span>
</h3>
<div>
<a href="https://maps.gov.bc.ca/ess/hm/imap4m/"
target="_blank"
rel="noopener"
class="ghost-button"
style="text-transform: none">
<fa-icon [icon]="faArrowUpRightFromSquare"></fa-icon> View spatial layers in iMapBC
</a>
</div>
</div>

<app-details-map
[projectSpatialDetail]="projectSpatialDetail">
</app-details-map>
</div>
<app-shape-info
[spatialDetail]="projectSpatialDetail">
</app-shape-info>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,19 @@ table {
.slide-toggle-margin {
margin: 10px;
}
}
}

// details-map
.details-map-container {
h3 {
margin-bottom: 0;
padding: 5px 0
}
.banner-top {
margin-bottom: 5px;
display: flex;
flex-flow: row wrap;
justify-content: space-between;
align-items: center;
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { CommonModule } from '@angular/common';
import { Component, ElementRef, EventEmitter, OnDestroy, OnInit, Output, ViewChild } from '@angular/core';
import {
AttachmentResponse, AttachmentService, ProjectResponse, ProjectService,
SpatialFeaturePublicResponse, SpatialFeatureService, WorkflowStateCode
AttachmentResponse, AttachmentService, ProjectResponse, ProjectService,
SpatialFeaturePublicResponse, SpatialFeatureService, WorkflowStateCode
} from '@api-client';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
import { faArrowUpRightFromSquare } from '@fortawesome/free-solid-svg-icons';
import { NgbModal, NgbModalRef } from '@ng-bootstrap/ng-bootstrap';
import { UrlService } from '@public-core/services/url.service';
import { ConfigService } from '@utility/services/config.service';
Expand All @@ -28,7 +30,10 @@ import moment = require('moment');
*/
@Component({
standalone: true,
imports: [CommonModule, ShapeInfoComponent, CommentModalComponent, DetailsMapComponent],
imports: [
FontAwesomeModule, CommonModule, ShapeInfoComponent,
CommentModalComponent, DetailsMapComponent
],
selector: 'app-details-panel',
templateUrl: './details-panel.component.html',
styleUrls: ['./details-panel.component.scss']
Expand All @@ -47,6 +52,7 @@ export class DetailsPanelComponent implements OnDestroy, OnInit {
public workflowStatus: _.Dictionary<WorkflowStateCode>;
public projectIdFilter = new Filter<string>({ filter: { queryParam: 'id', value: null } });
public attachments: AttachmentResponse[];
public faArrowUpRightFromSquare = faArrowUpRightFromSquare;

constructor(
public modalService: NgbModal,
Expand Down
17 changes: 17 additions & 0 deletions public/src/assets/styles/layout/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,21 @@ hr {

.word-wrap {
word-wrap: break-word;
}

.ghost-button {
display: inline-block;
width: 215px;
padding: 2px;
border: 2px solid rgb(13 110 253);
text-align: center;
outline: none;
text-decoration: none;
transition: background-color 0.3s ease-out, color 0.3s ease-out;
border-radius: 0.375rem;
}

.ghost-button:hover, .ghost-button:active {
background-color: $gray4;
transition: background-color 0.3s ease-in, color 0.3s ease-in;
}

0 comments on commit 9645c1b

Please sign in to comment.