This widget calls Baidu map(speedy version) API, and only works on touch devices.
If the address positioning is not precise enough, you may use longitude/latitude positioning instead. The address will be dismissed if longitude and latitude is provided.
How to get longitude/latitude?Open Baidu map position picker, and click on the position. Then click on the copy icon on the upper right corner to get your longitude and latitude.
<div data-am-widget="map" class="am-map am-map-default"
data-name="云适配" data-address="北京市海淀区海淀大街27号亿景大厦3层西区" data-longitude="" data-latitude="" data-scaleControl="" data-zoomControl="true" data-setZoom="17" data-icon="http://amuituku.qiniudn.com/mapicon.png">
<div id="bd-map"></div>
</div>
<body>
of the Amaze UI HTML template(Download);The Handlebars partial of this widget is map
. See Accordion for more details.
{
// ID
"id": "",
// Customized class
"className": "",
// Theme
"theme": "",
// Options
"options": {
"name": "", // Name of this label
"address": "", // Address. Used to position the label.
"longitude": "", // Longtitude. Used to improve the precision.
"latitude": "" // Latitude. Used to improve the precision.
"zoomControl": Boolean, // Whether allow zooming.
"scaleControl": Boolean, // Whether show scale on map.
"setZoom": Number, // Zoom level.
"icon": "" // Icon of label.
}
}