jQuery的地图插件 jMaps

码农软件 · 软件分类 · 地图相关 · 2019-08-01 08:28:49

软件介绍

jMaps 是一个 jQuery 的插件,提供了简单的 API 来访问 Google 地图,主要的功能有:

* Geocode and reverse any valid address in the world via Google's geocoding API
* Search for directions to and from any location
* Add and remove Markers
* Add and remove polygons and polylines
* Add and remove graphic layers on the map
* Add and remove Google adsense layers
* Add and remove Traffic layers
* Get information back such as map center, map size, map type, etc

示例代码:

jQuery(document).ready(function(){
   
    jQuery
('#map1').jmap('init', {'mapType':'hybrid','mapCenter':[37.4419, -122.1419]});
   
    jQuery
('#address-submit-1').click(function(){
        jQuery
('#map1').jmap('SearchAddress', {
           
'query': jQuery('#address').val(),
           
'returnType': 'getLocations'
       
}, function(result, options) {
           
           
var valid = Mapifies.SearchCode(result.Status.code);
           
if (valid.success) {
            jQuery
.each(result.Placemark, function(i, point){
                jQuery
('#map1').jmap('AddMarker',{
                       
'pointLatLng':[point.Point.coordinates[1], point.Point.coordinates[]],
                       
'pointHTML':point.address
                   
});
               
});
           
} else {
                jQuery
('#address').val(valid.message);
           
}
       
});
       
return false;  
   
});
});

本文地址:https://codercto.com/soft/d/11390.html

计算机系统基础

计算机系统基础

袁春风 / 机械工业出版社 / 2014-7-1 / CNY 49.00

《计算机类专业系统能力培养系列教材:计算机系统基础》主要介绍与计算机系统相关的核心概念,解释这些概念如何相互关联并最终影响程序执行的结果和性能。共分8章,主要内容包括数据的表示和运算、程序的转换及机器级表示、程序的链接、程序的执行、存储器层次结构、虚拟存储器、异常控制流和I/O操作的实现等。内容详尽,反映现实,概念清楚,通俗易懂,实例丰富,并提供大量典型习题供读者练习。本书可以作为计算机专业本科或......一起来看看 《计算机系统基础》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具