> My question is: can I let other folks embed my custom map on their own sites?

the "embed this map" feature on google maps simply creates an iframe.
Here's the source I get by default:

<iframe width="425" height="350" frameborder="0" scrolling="no"
marginheight="0" marginwidth="0" src="http://maps.google.com.gt/maps?
hl=es&amp;ie=UTF8&amp;ll=15.778464,-90.224424&amp;spn=5.294799,9.876709&amp;t=m&amp;z=7&amp;output=embed"></
iframe><br /><small><a href="http://maps.google.com.gt/maps?
hl=es&amp;ie=UTF8&amp;ll=15.778464,-90.224424&amp;spn=5.294799,9.876709&amp;t=m&amp;z=7&amp;source=embed"
style="color:#0000FF;text-align:left">Ver mapa más grande</a></small>

so basically everything between the iframe tags is what you want to
replicate, obviously swapping in your own url for google's. Everything
after the ? in the iframe src is a query string that tells your map
what to do as it gets embedded.

there's plenty of stuff about query strings online. you will need to
set permissions so that cross-domain requests are possible as some
browsers require this before loading iframe content from a different
domain.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to