|
@@ -458,6 +458,44 @@ export default {
|
|
|
//
|
|
|
mapdate:'',
|
|
|
mapinput:'',
|
|
|
+ mapdata:[
|
|
|
+ {
|
|
|
+ groupName: "信息部测试专用赴日本、加拿大7日",
|
|
|
+ client: "信息部测试专用",
|
|
|
+ statusText: "入住酒店中",
|
|
|
+ address: "日本〒104-0032 Tokyo, Chuo City, Hatchobori, 1 Chome−12−8 EAST2階"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ groupName: "信息部测试专用加拿大7日",
|
|
|
+ client: "信息部测试专用",
|
|
|
+ statusText: "商务会议中",
|
|
|
+ address: "日本〒104-0032 Tokyo, Chuo City, Hatchobori, 1 Chome−12−8 EAST2階"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ groupName: "信息部测试专用赴日本7日",
|
|
|
+ client: "信息部测试专用",
|
|
|
+ statusText: "参加会展",
|
|
|
+ address: "日本〒104-0032 Tokyo, Chuo City, Hatchobori, 1 Chome−12−8 EAST2階"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ groupName: "信息部测试专用赴墨西哥",
|
|
|
+ client: "信息部测试专用",
|
|
|
+ statusText: "入住酒店中",
|
|
|
+ address: "Av. Río San Joaquín 498-piso 2, suite 5, Amp Granada, Miguel Hidalgo, 11529 Ciudad de México, CDMX, 墨西哥"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ groupName: "信息部测试专用赴韩国",
|
|
|
+ client: "信息部测试专用",
|
|
|
+ statusText: "入住酒店中",
|
|
|
+ address: "구의3동 587 동서울우편물류센터 4층"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ groupName: "信息部测试专用赴日本东京都",
|
|
|
+ client: "信息部测试专用",
|
|
|
+ statusText: "入住酒店中",
|
|
|
+ address: "MQGH+RF 中央区 日本东京都"
|
|
|
+ },
|
|
|
+ ],
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -613,15 +651,7 @@ export default {
|
|
|
},
|
|
|
//地址转换
|
|
|
getonline(val){
|
|
|
- var geocoder = new mapkit.Geocoder({
|
|
|
- language: "zh-Hans",
|
|
|
- getsUserLocation: true
|
|
|
- });
|
|
|
- geocoder.lookup(val, function (err, data) {
|
|
|
- console.log(data);
|
|
|
-
|
|
|
- return data
|
|
|
- });
|
|
|
+
|
|
|
},
|
|
|
//在线地图
|
|
|
async onlinemap(){
|
|
@@ -633,12 +663,8 @@ export default {
|
|
|
done(token);
|
|
|
},
|
|
|
});
|
|
|
- this.getonline('구의3동 587 동서울우편물류센터 4층');
|
|
|
- this.getonline('1061 Haupapa St, Private Bag 3029, Rotorua Mail Centre, Rotorua 3046, New Zealand');
|
|
|
- this.getonline('Av. Río San Joaquín 498-piso 2, suite 5, Amp Granada, Miguel Hidalgo, 11529 Ciudad de México, CDMX, 墨西哥');
|
|
|
- this.getonline('MQGH+RF 中央区 日本东京都');
|
|
|
-
|
|
|
|
|
|
+
|
|
|
var CALLOUT_OFFSET = new DOMPoint(-148, -78);
|
|
|
var landmarkAnnotationCallout = {
|
|
|
calloutElementForAnnotation: function(annotation) {
|
|
@@ -664,6 +690,16 @@ export default {
|
|
|
return ".4s cubic-bezier(0.4, 0, 0, 1.5) 0s 1 normal scale-and-fadein";
|
|
|
}
|
|
|
};
|
|
|
+ var geocoder = new mapkit.Geocoder({
|
|
|
+ language: "zh-Hans",
|
|
|
+ getsUserLocation: true
|
|
|
+ });
|
|
|
+ for (let i = 0; i < this.mapdata.length; i++) {
|
|
|
+ geocoder.lookup(this.mapdata[i].groupName, function (err, data) {
|
|
|
+ console.log(data);
|
|
|
+
|
|
|
+ });
|
|
|
+ }
|
|
|
var sanFranciscoLandmarks = [
|
|
|
{ coordinate: new mapkit.Coordinate(52.2402, 13.0333), title: "波茨坦", phone: "水电费水电费<br/>asdasdasdasd<br/>tgtgtg", url: "http://www.transamericapyramidcenter.com/" },
|
|
|
{ coordinate: new mapkit.Coordinate(30.39, 104.04), title: "成都", phone: "+1 (415) 983-8030", url: "http://www.ferrybuildingmarketplace.com" },
|