以房找人
This commit is contained in:
@@ -131,11 +131,10 @@ export default {
|
||||
retryMapCount: 0,
|
||||
building: {},
|
||||
buildPopup: false,
|
||||
|
||||
latitude: 30.606355,
|
||||
longitude: 114.429633,
|
||||
// latitude: 23.099994,
|
||||
// longitude: 113.324520,
|
||||
// latitude: 30.606355,
|
||||
// longitude: 114.429633,
|
||||
latitude: '',
|
||||
longitude: '',
|
||||
_mapContext: null,
|
||||
markList: [],
|
||||
statusBarHeight: uni.getSystemInfoSync().statusBarHeight,
|
||||
@@ -143,13 +142,13 @@ export default {
|
||||
},
|
||||
computed: {...mapState(['user'])},
|
||||
mounted() {
|
||||
// uni.getLocation({
|
||||
// type: 'wgs84',
|
||||
// success: (res) => {
|
||||
// this.latitude = res.latitude
|
||||
// this.longitude = res.longitude
|
||||
// }
|
||||
// });
|
||||
uni.getLocation({
|
||||
type: 'wgs84',
|
||||
success: (res) => {
|
||||
this.latitude = res.latitude
|
||||
this.longitude = res.longitude
|
||||
}
|
||||
});
|
||||
this._mapContext = uni.createMapContext("map", this);
|
||||
// 仅调用初始化,才会触发 on.("markerClusterCreate", (e) => {})
|
||||
this._mapContext.initMarkerCluster({
|
||||
|
||||
Reference in New Issue
Block a user