diff --git a/src/platforms/h5/view/components/map/map-marker.js b/src/platforms/h5/view/components/map/map-marker.js index 3d25ce520c5d120572ca320bcc8e1a340ed05f0a..34b27d946d0db945cb6bbf4a54bb867ae4a2f6c1 100644 --- a/src/platforms/h5/view/components/map/map-marker.js +++ b/src/platforms/h5/view/components/map/map-marker.js @@ -1,4 +1,4 @@ -import { mapInfo, MapType, IS_AMAP } from '../../../helpers/location' +import { MapType, getMapInfo, IS_AMAP } from '../../../helpers/location' import getRealPath from 'uni-platform/helpers/get-real-path' export default { @@ -332,6 +332,7 @@ export default { return className }, getMarkerLatitudeLongitude (e) { + const mapInfo = getMapInfo() let latitude let longitude