***Gmap***

Description

add google map into current page

Gmap Macro by Gavin Kou<gavin.kou#itbbq.com> Output the JavaScript edition google map

<<Gmap(latitude,longitude,zoomLevel=10,width=600,height=600,type=2, marker=None)>> OR <<Gmap(latitude,longtitude)>> output sample: <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"> </script> <script type="text/javascript" > function initGmap_534af8a7d18890ac0b692cfd5f9abbbb() { var latlng = new google.maps.LatLng(30.73239, 90.62073); var myOptions = { zoom: 10, center: latlng, mapTypeId: google.maps.MapTypeId.HYBRID }; var map = new google.maps.Map(document.getElementById("534af8a7d18890ac0b692cfd5f9abbbb"), myOptions); } if (document.all) { window.attachEvent('onload', initGmap_534af8a7d18890ac0b692cfd5f9abbbb ); } else { window.addEventListener('load', initGmap_534af8a7d18890ac0b692cfd5f9abbbb , false); </script>

more information please refer to http://code.google.com/intl/en/apis/maps/documentation/javascript/introduction.html

Download & Release Notes

Download

Release Version

Moin Version

Release Notes

Gmap.py

Usage

Example

<<Gmap(29.654967,91.119239,width=800,height=600,zoomLevel=14,type=0,marker='布达拉宫')>>
OR 
<<Gmap(30.73239,90.62073,width=1000,height=800,zoomLevel=10)>>                                                          

there are some live sample: TravelOfTibet

GPL

License

Bugs

Discussion

MoinMoin: MacroMarket/Gmap (last edited 2010-07-20 07:02:31 by GavinKou)