This link has been bookmarked by 11 people . It was first bookmarked on 27 May 2008, by FruFru FourOne.
-
Jérémie PottierAfficher Google Maps sans Javascript.
-
Glenn MInside the map <div> there is an <img> tag which points to Google Static maps api. You can pass needed parameters in URL and Google generates map as static image. For example:
http://maps.google.com/staticmap?&zoom=12&size=512x300
¢er=58.378700,26.731110&key=GOOGLE_API_KEY
Generates the following map:
What we do here is really simple. In sidebar links we pass needed parameters in querystring. PHP then writes these parameters into <img> tag pointing to static maps api. Instead of center we pass markers parameter. It contains coordinates to one or more markers. Map api then centers map automatically. This comes especially handy when there is multiple markers. -
Herbert ViglStatic maps api is really great. I have only one complaint. Maximum size of 512×512 is a bit too limiting to my taste.
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.