地图基本功能代码分享

笛途 发布于 2015/01/04 09:25
阅读 1K+
收藏 1

现在电子地图的应用范围是越来越广了,相关的地图开发软件也层出不穷,这里我用SiteMapIMS地图开发引擎开发的一套拥有基本功能的地图产品:

实际效果展示

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="http://211.136.131.242:8087/api/map.js?key=您的密钥"></script>
<title>siteMap HelloWorld</title>
<meta name="keywords" content="Ϊ׿��ͼapi,GISƽ̨,web GIS,��ҵ������Ϣϵͳ ,��ҵGIS,��ҵ��ͼƽ̨,Ϊ׿��ͼAPI,Ϊ׿API,��ͼapi,��ͼ API,Ϊ׿�ֻ�API,Ϊ׿��ͼAPI Android,Ϊ׿��ͼAPI iOS,URI API,Ϊ׿,��ͼ,lbs����ƽ̨,lbsӦ�ÿ���" />
<style type="text/css">
body, html,#allmap {width: 100%;height: 100%;overflow: hidden;margin:0;}
</style>
</head>
<body>
<div id="div_map" style="width:100%;height:100%;"></div>
<script type="text/javascript">
   var map=null; 
map=new STMapObj("div_map"); 
map.locateMap(new STMapPoint(121.47613,31.229812),2); 
map.setZoomCompVisible(false); 
map.setScaleCompVisible(false);
</script>
<div style="display: none">
<script type="text/javascript">
var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cspan id='cnzz_stat_icon_1000501913'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s11.cnzz.com/z_stat.php%3Fid%3D1000501913' type='text/javascript'%3E%3C/script%3E"));
</script>
</div>
</body>
</html>

加载中
返回顶部
顶部