HTML Fallback Google Maps


/ Published in: HTML
Save to your folder(s)

How to determine a static map image for google Maps as fallback for visitors without JS. The image can later be replaced via JS with the google Maps IFrame.


Copy this code and paste it in your HTML
  1. <img src="http://maps.google.com/maps/api/staticmap
  2. ?center=Bethlehem+Israel
  3. &amp;zoom=5
  4. &amp;size=540x280
  5. &amp;maptype=satellite
  6. &amp;markers=color:red|31.4211,35.1144
  7. &amp;sensor=false"
  8. width="540" height="280" alt="Map of Bethlehem, Israel" />

URL: http://24ways.org/2010/finding-your-way-with-static-maps

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.