- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: http://code.google.com/p/jmaps/
软件介绍
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;
});
});
编程语言实现模式
Terence Parr / 李袁奎、尧飘海 / 华中科技大学出版社 / 2012-3-20 / 72.00元
《编程语言实现模式》旨在传授开发语言应用(工具)的经验和理念,帮助读者构建自己的语言应用。这里的语言应用并非特指用编译器或解释器实现编程语言,而是泛指任何处理、分析、翻译输入文件的程序,比如配置文件读取器、数据读取器、模型驱动的代码生成器、源码到源码的翻译器、源码分析工具、解释器,以及诸如此类的工具。为此,作者举例讲解已有语言应用的工作机制,拆解、归纳出31种易于理解且常用的设计模式(每种都包括通......一起来看看 《编程语言实现模式》 这本书的介绍吧!
