It was pretty easy to sort out how to add my own tiles:
var tilesMine1 = new GTileLayer(copyOSM, 12, 16, {tileUrlTemplate:
'http://www.myurl.org/maps/directory1/{X}_{Y}_{Z}.gif'});
var mapMine2 = new GMapType([tilesMine1],
G_NORMAL_MAP.getProjection(), 'directory1');
var map = new GMap2(document.getElementById('map'),
{ mapTypes: [mapMine1] });
It is defeating me how to add a second set. This doesn't work:
var tilesMine2 = new GTileLayer(copyOSM, 12, 16, {tileUrlTemplate:
'http://www.myurl.org/maps/directory2/{X}_{Y}_{Z}.gif'});
var mapMine2 = new GMapType([tilesMine2],
G_NORMAL_MAP.getProjection(), 'directory2');
var map = new GMap2(document.getElementById('map'),
{ mapTypes: [mapMine2] });
I presume it's that reference to var map which can't happen twice.
What do I do here?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---