William my friend. You have just made my day. Thank you! http://www.darkmatters.org/forums/bradstuff/Map/Sacred%202%20Overlay%20Map.html
This is soooo cool. I've been working on this map with Photoshop for near a year and it's such a treat to be able to host it myself in this way. No doubt the fans of this game will enjoy the map. :) I've been doing a lot of reading on the whole background color thing the past day or so... Would I be right to assume that changing the background color around the map is not an option? It seems that no one is able to do this but it doesn't make sense because the MapOptions object specification does include a backgroundColor... On Jul 4, 11:05 pm, William <[email protected]> wrote: > oh I see what you are saying now, then both layers are base map types. > > // when constructing the map, remove the mapType control > // (to be added later when the map types are defined) > > var myOptions = { > zoom: 2, > center: myLatlng, > mapTypeControl: false > } > > // define the dungeons base map type > > var dungeons = new google.maps.ImageMapType(dungeonOptions); > dungeons.name = "Dungeons"; > dungeons.maxZoom = 7; > dungeons.minZoom = 2; > map.mapTypes.set('dungeons', dungeons); > > // add the mapType control with the new layers: > > map.setOptions({ > mapTypeControl: true, > mapTypeControlOptions: { > style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR, > mapTypeIds: ['S2map', 'dungeons'] > } > }); > > .... -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
