Skip to content

Commit ed5950a

Browse files
Merge pull request #49 from digipolisantwerp/feature/GIS-512
Adds actualLocation to location object marker
2 parents 82ba041 + c9eef8e commit ed5950a

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ All notable changes to this project will be documented in this file.
77
### Fixed
88
- Updated public API (added used models and fixed CascadingCoordinateRulesType enum import)
99

10+
### Added
11+
- Added actualLocation property to tempLocation (selectedLocation on marker placement)
12+
1013
<!--
1114
"### Added" for new features.
1215
"### Changed" for changes in existing functionality.

projects/example/src/app/app.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ <h1 class="h5 u-margin-bottom">Digipolis Location Picker Service</h1>
1010
<form (ngSubmit)="onSubmitNgModel()">
1111
<aui-location-picker
1212
name="locationPickerModel"
13-
[baseUrl]="baseUrl + '/api/v1'"
13+
[baseUrl]="baseUrl + '/api/v2'"
1414
[(ngModel)]="selectedLocationModel"
1515
[locationLayers]="['all']"
1616
></aui-location-picker>

projects/ngx-location-picker/src/lib/components/ngx-location-picker.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ export class NgxLocationPickerComponent implements OnInit, OnDestroy, ControlVal
432432

433433
if (this.locationPickerHelper.isCoordinate(searchValue) && !this.pickLocationActive) {
434434
let coords: LambertModel = this.locationPickerHelper.extractXYCoord(searchValue);
435-
const tempLocation = {position: {wgs84: {lat: coords.x, lng: coords.y}}, label: `${coords.x},${coords.y}`};
435+
const tempLocation = {position: {wgs84: {lat: coords.x, lng: coords.y}}, label: `${coords.x},${coords.y}`, actualLocation: { lat: coords.x, lng: coords.y}};
436436
if (!this.locationPickerHelper.isWgs84Coordinates(coords.x, coords.y)) {
437437
coords = this.locationPickerHelper.convertLambertToWgs84Coordinates(coords);
438438
searchValue = `${coords.x}, ${coords.y}`;

0 commit comments

Comments
 (0)