|
@@ -442,7 +442,8 @@ export default {
|
|
|
fourthPagesize:10,
|
|
|
fourthtotal:0,
|
|
|
input:'',
|
|
|
- map:null
|
|
|
+ map:null,
|
|
|
+ //
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -622,18 +623,20 @@ export default {
|
|
|
mapkit.init({
|
|
|
language: 'zh-Hans',
|
|
|
authorizationCallback: function(done) {
|
|
|
- done(token);
|
|
|
+ done(token);
|
|
|
}
|
|
|
});
|
|
|
// var map = new mapkit.Map('map', { center: new mapkit.Coordinate(104.096488, 30.635261) });
|
|
|
- const coordinate = new mapkit.Coordinate(104.096488, 30.635261)
|
|
|
- // const span = new mapkit.CoordinateSpan(5, 5) // 1degree=111km
|
|
|
- // const region = new mapkit.CoordinateRegion(coordinate, span)
|
|
|
- const map = new mapkit.Map("map", {
|
|
|
- center: coordinate,
|
|
|
- countryCode: "CN",
|
|
|
- isZoomEnabled:true,
|
|
|
- })
|
|
|
+ // const coordinate = new mapkit.Coordinate(104.096488, 30.635261)
|
|
|
+ // const map = new mapkit.Map("map", {
|
|
|
+ // center: coordinate,
|
|
|
+ // countryCode: "CN",
|
|
|
+ // isZoomEnabled:true,
|
|
|
+ // })
|
|
|
+ const map = new mapkit.Map(document.getElementById('map'), {
|
|
|
+ center: new mapkit.Coordinate(104.096488, 30.635261),
|
|
|
+ zoom: 11
|
|
|
+ });
|
|
|
|
|
|
|
|
|
},
|