Jump to content

 
Photo

Map wrapped over Google Maps

- - - - -

  • Please log in to reply
1 reply to this topic

#1
Charles Syrett

Charles Syrett

    Ultimate Contributor

  • Validated Member
  • PipPipPipPipPipPip
  • 537 posts
  • Canada

I've used Global Mapper and Google API to georegister a client-supplied map, create tiles from it, and wrap it over Google Maps. It works nicely and it's sitting on my server -- it's just an html file that reads the map tiles and displays them on Google.

Then I created a kml file that displays addresses within the same map area (the addresses are new, from the client's development project), and made a MyMaps map out of it. How do I get those same addresses to display on the first map that I created?

Charles Syrett
Map Graphics
http://www.mapgraphics.com

#2
dsl

dsl

    Master Contributor

  • Validated Member
  • PipPipPipPip
  • 225 posts
  • Gender:Male
  • Location:Denver
  • United States

If you are using at least version2 of the Google Maps API, you can create a KML overlay and add it to your map.

Here is the documentation: http://code.google.c...ml#XML_Overlays

And an example if you want to view the source: http://code.google.c...geoxml-kml.html


Another option is to parse the KML in javascript and get the placemarks that way. KML is just xml so you can treat it the same way. This might be more complicated.

It looks like version three actually has something called a KMLlayer. I've never used it, but here is an example:
http://gmaps-samples...ers/layers.html

Cheers,
David




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

-->