replace G_SATELLITE_MAP in tile layers

Discussion created by jarrudy on Mar 25, 2011
Latest reply on Nov 7, 2011 by a-rya
newbie question here: i am using the google maps javascript api to build a mapping application. currently, i have the following code to put a custom map over the google base map:

var tilelayers = [G_SATELLITE_MAP.getTileLayers()[0], gTileLayer];
var gMapType = new GMapType(tilelayers, new GMercatorProjection(20), "My Map", {errorMessage:"No Data Available"});

what i want to do is use a custom map instead of G_SATELLITE_MAP as the base layer.

i've been fighting this for a week. how do i do this?