Http://code.google.com/p/goog-maps-demo/source/browse/trunk/examples/Map/fitBounds.html? R = 6
Http://www.tongmap.cn/code/webgis3.0--API/symbols/sic.LatLngBounds.html
1
VaR Geocoder = New Google. Maps. geocoder (); // Map search object
Geocoder. geocode ({ ' Address ' : Address, ' Bounds ' : Bounds }, Function (Results, status ){
If (Status = Google. Maps. geocoderstatus. OK)
{ VaR I = 0 ; Alert (address + " , " + Results [I]. Geometry. Location. LAT () + " , " + Results [I]. Geometry. Location. LNG ()); If (Results [I]. Geometry. Location. LAT () > = G_weidu_min && Results [I]. Geometry. Location. LAT () <= G_weidu_max && Results [I]. Geometry. Location. LNG () > = G_jingdu_min && Results [I]. Geometry. Location. LNG () <= G_jingdu_max) map. setcenter (results [I]. Geometry. Location ); VaR Marker = New Google. Maps. Marker ({map: map, // Define the display tag in map. Position: Results [I]. Geometry. Location // Define the tag location }); Markersarray. Push (Marker ); } } Else If (Status = Google. Maps. geocoderstatus. over_query_limit) {pause ( This , 50 ); // Call the pause function Geocode (Address );}
2