Home > front end >  Baidu map JavaScript apis use custom labeling icon center is not in the coordinates of point how to
Baidu map JavaScript apis use custom labeling icon center is not in the coordinates of point how to

Time:11-11


Baidu map JavaScript apis use custom labeling icon center is not in the coordinates of point how to do??
With online download offline map, as shown in figure, blue icon is a custom icon tip is to point to in the coordinate point, the red icon for the default icon instructions are the coordinates of the point accurately,

Custom icon:
MyIcon=new BMap. Icon (" images/icon_marke_blue. PNG, "new BMap. Size (32, 32)); Aiaa//32
Marker=new BMap. Marker (OPoint, {icon: myIcon});
The default icon:
Marker=new BMap. Marker (OPoint);




  • Related