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

文明之光 (第三册)

文明之光 (第三册)

吴军 / 人民邮电出版社 / 2015-1-1 / 59

【《文明之光》系列荣获由中宣部、中国图书评论学会和中央电视台联合推选的2014“中国好书”奖】 吴军博士从对人类文明产生了重大影响却在过去被忽略的历史故事里,选择了有意思的几十个片段特写,以人文和科技、经济结合的视角,有机地展现了一幅人类文明发展的宏大画卷。 《文明之光 》系列大致按照从地球诞生到近现代的顺序讲述了人类文明进程的各个阶段,每个章节相对独立,全景式地展现了人类文明发展历程......一起来看看 《文明之光 (第三册)》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

html转js在线工具
html转js在线工具

html转js在线工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具