[GIS] Google Maps and Search for KML URL

google mapsgoogle-maps-apikml

Can anyone tell me how I could add the functionality as seen on google maps that allow users to specify a URL to a KML file in the search bar?

I would like to include this in my own embedded map but I'm really lost on how to execute it.

I've seen examples for KML URL search on other sites but they don't seem to work. Maybe google has dropped this feature from embedded maps/api3 maps?

Best Answer

You can use an iframe:

<iframe width="425" height="350" frameborder="no" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.fr/maps?f=q&hl=fr&geocode=&q=nice&ie=UTF8&z=11&iwloc=addr&om=1&ll=43.76068,7.299728&output=embed&s=AARTsJotOehFyV7Ld4EHPP1WtrZKl2G9Tw"></iframe>

Examples: Google Maps Google Maps + KML