There is no concept of "maptype" in AGS JSAPI, everything is a layer(overlay). The techniques used in your sample is actually mimic "maptype" behavior by turn on a specific set of layers at one time. Google API has maptype to do this. What you can do is follow this example: http://google-maps-utility-library-v3.googlecode.com/svn/trunk/arcgislink/examples/arcgisonline.html
Basically define a gmaps.ags.MapType with 2 or 3 url each, like how "labeled imagery" is defined: "'Labeled Imagery': ['World_Imagery', 'Reference/ World_Boundaries_and_Places'], This should be exactly same as your use case, World_Imagery as your base, and your own tiles as "reference". However, if you want to use Google's satellite image as your base, then you need to use them as "overlayMapType" and use the same technique in AGS JSAPI to switch them on/off, start from this example: http://google-maps-utility-library-v3.googlecode.com/svn/trunk/arcgislink/examples/maptypeoverlay.html On Dec 16, 6:34 am, oddhnp <[email protected]> wrote: > Hi - this might have to be called a newbie question. > > I am using the ArcGIS Server Link for Google Maps API V3 with our > ArcGIS Server services - have recently changed from using The ArcGIS > Javascript API. > > But (surprisingly) I have problems making a menu along with my map- > window, in order to switch different ArcGIS cached services on and of. > > Spesifically, I'm hoping to replace this ArcGIS Javascript based map > with a Google Maps API ver3 > one:http://www.ngu.no/mareano/Prosjekt/kart/Sokkel-multi.htm > > I have tried several ways but I have no code to share - I think I've > not looked in the right way for doing this yet.... I would be immensly > glad for any help. > > /OddH-np -- 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.
