Skip to content

Commit

Permalink
fix(h5 map): 修复marker 点击报错问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenyuWang committed Aug 4, 2022
1 parent 960b69a commit 01e193c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/platforms/h5/view/components/map/map-marker.js
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -332,6 +332,7 @@ export default {
return className
},
getMarkerLatitudeLongitude (e) {
const mapInfo = getMapInfo()
let latitude
let longitude

Expand Down

0 comments on commit 01e193c

Please sign in to comment.