Skip to content

Commit

Permalink
Task/WG-171: Fix location question on questionnaire map (#186)
Browse files Browse the repository at this point in the history
* Make map fill up the map container

* Add marker on location map
  • Loading branch information
nathanfranklin authored Dec 18, 2023
1 parent 1cc7be6 commit 33ffb29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@
position relative
width 100%

::ng-deep .mapCanvas
width 100%
height 100%

::ng-deep p.locationQuestionDetails
font-weight bold
Expand Down
1 change: 1 addition & 0 deletions angular/src/app/utils/questionnaireBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2711,6 +2711,7 @@ class LocationField extends Question {
: -122.3353;

const view_map = L.map(view_mode_map_canvas).setView([lat, lon], 16);
L.marker([lat, lon]).addTo(view_map);

L.tileLayer(
'https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}'
Expand Down

0 comments on commit 33ffb29

Please sign in to comment.