Commit 5515e56e authored by zhengke's avatar zhengke

修改

parent ba929db7
...@@ -175,6 +175,13 @@ ...@@ -175,6 +175,13 @@
scaledSize: new google.maps.Size(40, 40), scaledSize: new google.maps.Size(40, 40),
} }
} }
//景点
if(type==2){
image = {
url: 'http://imgfile.oytour.com/static/location_scenic.png',
scaledSize: new google.maps.Size(35, 45),
}
}
let marker = new MarkerWithLabel({ let marker = new MarkerWithLabel({
position: new google.maps.LatLng(loc[0], loc[1]), position: new google.maps.LatLng(loc[0], loc[1]),
icon: image, //标记自定义图标 icon: image, //标记自定义图标
...@@ -185,7 +192,7 @@ ...@@ -185,7 +192,7 @@
labelClass: "labels", // the CSS class for the label labelClass: "labels", // the CSS class for the label
labelStyle: { background:'#fff', borderRadius:'50%',marginLeft:'-10px',marginTop:'-35px',width:'19px',height:'19px',textAlign:'center',lineHeight:'20px' } labelStyle: { background:'#fff', borderRadius:'50%',marginLeft:'-10px',marginTop:'-35px',width:'19px',height:'19px',textAlign:'center',lineHeight:'20px' }
}); });
if(type==3){ if(type==3||type==2){
marker.labelContent='' marker.labelContent=''
marker.labelStyle='background:transparent' marker.labelStyle='background:transparent'
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment