Skip to content

Commit

Permalink
Add publick getter for coordinates in default marker
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew44-mappable committed Jun 6, 2024
1 parent 48a2341 commit f8239eb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/markers/MMapDefaultMarker/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {MMapMarker, MMapMarkerProps} from '@mappable-world/mappable-types';
import {LngLat, MMapMarker, MMapMarkerProps} from '@mappable-world/mappable-types';
import {IconColor, IconName, iconColors, icons} from '../../icons';
import {MMapPopupContentProps, MMapPopupMarker} from '../MMapPopupMarker';
import {MMapDefaultMarkerReactifyOverride} from './react';
Expand Down Expand Up @@ -77,6 +77,10 @@ export class MMapDefaultMarker extends mappable.MMapComplexEntity<MMapDefaultMar

private _popup?: MMapPopupMarker;

public get coordinates(): LngLat {
return this._marker.coordinates;
}

constructor(props: MMapDefaultMarkerProps) {
super(props);
}
Expand Down

0 comments on commit f8239eb

Please sign in to comment.