Using google maps

2257
6
11-01-2010 06:48 AM
PrestigeMakanga
New Contributor
Does anyone know how to include google maps as one of the base layers? I also have an Image service for a city, would it be possible to overlay this on top of the ESRI image service?

Another question is how can i make an operational layer visible by default when the flex viewer app is started?


Regards
Prestige
Tags (2)
0 Kudos
6 Replies
RobertScheitlin__GISP
MVP Emeritus
Prestige,

    Google maps has some licensing constraints that will prevent you from using them as a basemap in Flex.
You should be able to add your image service to your map. the order in which you place it in the config file determines if it will be drawn on top of the other basemaps. The default visibility of a layer in a map service is determined by the map document (MXD). So if it is visible in the map document than it will be visible in the app by default.
0 Kudos
BjornSvensson
Esri Regular Contributor
Another question is how can i make an operational layer visible by default when the flex viewer app is started?

Each layer has a visible tag, you can set it to true to turn on the layer by default.  See http://help.arcgis.com/en/webapps/flexviewer/help/index.html#layer_tag.htm

<layer label="Streets"
    type="tiled"
    visible="true"
    url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
0 Kudos
PrestigeMakanga
New Contributor
I have inserted the following code into the config file . The Bolded part is supposed to call the image service but the app does not show any map. It's just a blank white space.

Any Ideas?

  <layer label="Aerial" type="dynamic" visible="true"  alpha="1"
                        url="http://cuo.geomatics.uct.ac.za/ArcGIS/rest/services/Capetown/ImageServer"/>

  <layer label="Streets" type="tiled" visible="true"  alpha="1"
                        url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
            <layer label="Sattelite"  type="tiled" visible="false" alpha="1"
                        url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"/>
            <layer label="Topo"    type="tiled" visible="false" alpha="1"
                        url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/>

Prestige
0 Kudos
PrestigeMakanga
New Contributor
I have also tried type="image" but the result is the same.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Prestige,

   I got it to show your imagery with this:

<layer label="test image Service" type="image" visible="false"
       url="http://cuo.geomatics.uct.ac.za/ArcGIS/rest/services/Capetown/ImageServer"/>
0 Kudos
İsmailZAMBAKCI
New Contributor II
are you looking for similar to that site
http://www.cbsmerkezi.com/esrigoogle
0 Kudos