ramotswa
29 Nov 2010, 6:41 AM
Hey guys,
So the getting started guide very nicely says to go and read about the google maps api to use with sensa touch. What I am wondering is how you would go about adding an overlay to a map in sensa touch?
Looking at the google example it would be
var ctaLayer = new google.maps.KmlLayer('http://gmaps-samples.googlecode.com/svn/trunk/ggeoxml/cta.kml');
ctaLayer.setMap(map);
However, using that won't work as "map" is the panel, rather than the google map.. and using something like "google.maps.Map" won't work either as it wouldn't know which map it's referring to.
Any ideas would be most welcome.
Thanks,
Ramo
So the getting started guide very nicely says to go and read about the google maps api to use with sensa touch. What I am wondering is how you would go about adding an overlay to a map in sensa touch?
Looking at the google example it would be
var ctaLayer = new google.maps.KmlLayer('http://gmaps-samples.googlecode.com/svn/trunk/ggeoxml/cta.kml');
ctaLayer.setMap(map);
However, using that won't work as "map" is the panel, rather than the google map.. and using something like "google.maps.Map" won't work either as it wouldn't know which map it's referring to.
Any ideas would be most welcome.
Thanks,
Ramo