hey guys... i am trying to figure out what to do on this google map. i have a bunch of points any where from 0 - 12, usually more then 2 there is the start location and then the results based on radius returned.
right now the map centers on the the address you enter. but i would like to be able to have it zoom out so you can see all points that are on the map.. <script src="http://maps.google.com/maps?file=api&v=2&key=<cfoutput>#key#</cfoutput>" type="text/javascript"></script> <script type="text/javascript"> //<![CDATA[ function load() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map")); map.setCenter(new GLatLng(<cfoutput>#fRez.latitude#,#fRez.longitude#</cfoutput>), 4); map.addControl(new GSmallMapControl()); map.addControl(new GMapTypeControl()); <!--- This is the enterd address ---> var point = new GLatLng(<cfoutput>#fRez.latitude#,#fRez.longitude#</cfoutput>); map.addOverlay(new GMarker(point)); <!--- This is the results found within the radius passed. ---> <cfoutput query="g_dis"> var point = new GLatLng(#g_dis.latitude#,#g_dis.longitude#); map.openInfoWindowHtml(point,"<h2>#g_dis.partner_name#</h2>"); map.addOverlay(new GMarker(point)) </cfoutput> } } //]]> </script> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330664 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4