As Mike refers, many non-documented APIs going away.
Resolution:
Create custom GMapType prior to instantiating GMap2 object
Then only include Custom GMapType in mapTypes[] array as part of
GMap2 Object
code:
// ============================================================
// ===== Create the GTileLayer =====
// ===== and apply the CustomGetTileUrl to it
var tilelayers = [new GTileLayer(copyrightCollection,1,4)];
tilelayers[0].getTileUrl = customGetTileURL; // Custom
Map Imagery created with GMap Tyle Cutter
// ============================================================
// ===== Specify Map Projection =====
newMapProjection = new GMercatorProjection(19);
// ============================================================
// ===== Specify Map Projection =====
var sec_01 = new GMapType(tilelayers, newMapProjection, "Section
1");
// ============================================================
// ====== Create Map Object with new array of Custom
Map Types =====
map = new GMap2(document.getElementById("map"),{mapTypes:
[sec_01]});
// Non-doc way map = new GMap2(document.getElementById
("map"), {mapTypes:[]});
'booyah, grandma, booyah'
On Mar 12, 1:09 pm, Rossko <[email protected]> wrote:
> > map = new GMap2(document.getElementById("map"), {mapTypes:
> > []});
>
> It's probably a logic error to create a GMap2 object with no map types
> at all. Perhaps the API is now checking more carefully.
>
> You might be interested in the technique suggested by Mike Wiliams in
> this thread
> today-http://groups.google.com/group/Google-Maps-API/browse_thread/thread/a...
>
> cheers, Ross K
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---