Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

Commit e65568e

Browse files
committed
fix(SebMGoogleMapMarker): 0 value for lat/lng
fixes #82 closes #101
1 parent 5f8a544 commit e65568e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/directives/google-map-marker.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ export class SebmGoogleMapMarker implements OnDestroy,
6767

6868
/** @internal */
6969
ngOnChanges(changes: {[key: string]: SimpleChange}) {
70-
if (!this._markerAddedToManger && this.latitude && this.longitude) {
70+
if (typeof this.latitude !== 'number' || typeof this.longitude !== 'number') {
71+
return;
72+
}
73+
if (!this._markerAddedToManger) {
7174
this._markerManager.addMarker(this);
7275
this._markerAddedToManger = true;
7376
this._markerManager.createClickObserable(this)

0 commit comments

Comments
 (0)