(function() { if(!testCSSVariables()){var script=document.createElement("script"),head=document.getElementsByTagName("head")[0];script.onload = function() { cssVars(); };script.src="assets/vendors/css-vars-ponyfill.min.js",head.insertBefore(script,head.firstChild);}; }());

跳过链接

!function(){ var infoWindow, map, level = 16, center = {lng: 121.009694, lat: 31.328329}, features = [{type: "Marker", name: "江苏lovebet爱博电竞达国际物流股份有限公司", desc: "地址:江苏省昆山经济技术开发区玫瑰路999号
电话:0512-5735 2888", color: "red", icon: "cir", offset: {x: -9, y: -31}, lnglat: {lng: 121.010112, lat: 31.328329}}]; function loadFeatures(){ for(var feature, data, i = 0, len = features.length, j, jl, path; i < len; i++){ data = features[i]; switch(data.type){ case "Marker": feature = new AMap.Marker({ map: map, position: new AMap.LngLat(data.lnglat.lng, data.lnglat.lat), zIndex: 3, extData: data, offset: new AMap.Pixel(data.offset.x, data.offset.y), title: data.name, content: '
' }); break; case "Polyline": for(j = 0, jl = data.lnglat.length, path = []; j < jl; j++){ path.push(new AMap.LngLat(data.lnglat[j].lng, data.lnglat[j].lat)); } feature = new AMap.Polyline({ map: map, path: path, extData: data, zIndex: 2, strokeWeight: data.strokeWeight, strokeColor: data.strokeColor, strokeOpacity: data.strokeOpacity }); break; case "Polygon": for(j = 0, jl = data.lnglat.length, path = []; j < jl; j++){ path.push(new AMap.LngLat(data.lnglat[j].lng, data.lnglat[j].lat)); } feature = new AMap.Polygon({ map: map, path: path, extData: data, zIndex: 1, strokeWeight: data.strokeWeight, strokeColor: data.strokeColor, strokeOpacity: data.strokeOpacity, fillColor: data.fillColor, fillOpacity: data.fillOpacity }); break; default: feature = null; } if(feature){ AMap.event.addListener(feature, "click", mapFeatureClick); } } } function mapFeatureClick(e){ if(!infoWindow){ infoWindow = new AMap.InfoWindow({autoMove: true}); } var extData = e.target.getExtData(); infoWindow.setContent("
" + extData.name + "
" + extData.desc + "
"); infoWindow.open(map, e.lnglat); } map = new AMap.Map("mapContainer", {center: new AMap.LngLat(center.lng, center.lat), level: level}); loadFeatures(); map.on('complete', function(){ map.plugin(["AMap.Scale"], function(){ map.addControl(new AMap.Scale); }); }) }();

CONTACT INFORMATION

联系信息

扫码关注公众号

江苏飞力达国际物流股份有限公司
地 址:江苏省昆山经济技术开发区玫瑰路999号
业务咨询:市场与客户中心 0512-57355702
邮编:215300
传真:0512-57309552
其他咨询:0512-5735 2888