1%s <meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width"><script src="https://webapi.amap.com/maps?v=1.4.12&key=%s"></script> %s
2<style type="text/css">
3  #%s{
4    width: %s;
5    height: %s;
6    margin: 0px
7  }
8</style>
9<div id="%s"></div>
10<script type="text/javascript">
11function showMap%s()
12{
13    var pnt = {lng:%f, lat:%f};
14    var map = new AMap.Map("%s", {
15       resizeEnable: true,
16       center:[pnt.lng, pnt.lat],
17       zoom:%d
18    });
19
20    if(%s)
21    {
22        var marker = new AMap.Marker({
23            position: [pnt.lng, pnt.lat],
24            offset: new AMap.Pixel(-13, -30)
25        });
26        marker.setTitle("%s");
27        marker.setMap(map);
28
29        marker.on('click', function (e){
30              var navi_url = "https://uri.amap.com/marker?position="+e.lnglat.getLng()+","+e.lnglat.getLat()+"&name="+(marker.getTitle())+"&callnative=1";
31              window.open(navi_url);
32        });
33    }
34
35    if(%s)
36    {
37       var layers =  [ new AMap.TileLayer.Satellite(),  new AMap.TileLayer.RoadNet() ];
38       map.setLayers(layers);
39    }
40}
41showMap%s();
42</script>