Select to view content in your preferred language

Basemap ArcGIS Viewer for FLex

5178
13
Jump to solution
03-23-2012 05:40 AM
DavidJosepha
Emerging Contributor
Hi there,

I've been trying to use my own basemap in flexviewer.
I've a raster layer but after I've done some researched I found out that a raster layer could not be used as a basemap.
Only dymanic, wms, tiled, image and arcIMS layers are supported to use as basemap.

Then I've tried this link: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00530000000v000000
But as a service it still shows the data type as raster layer.

My question is: what can I do with my data (which is raster) to yet use it as a basemap.

thank you
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
EricVenden
Frequent Contributor
Also,
1) make sure that the rest of your map services have the same coordinate system as the base map you are referencing
2) the operational layers and any other basemap layers are visible at the scales you cached the "initial" basemap layer

Eric
I'll try this out and let you know how it went.

View solution in original post

0 Kudos
13 Replies
EricVenden
Frequent Contributor
David,

Unless I'm not understanding you....It is possible to use your own internal raster layer as a basemap.  It can be cached (tiled) or uncached (dynamic)...

When you say "raster layer"...what is this?  A raster catalog or raster dataset?

Below is a sample from a config.xml file setting a dynamic image in the basemap tag.

  <basemaps>
   <layer label="2010 Aerial"  type="dynamic" visible="false" alpha="1"
   url="http://gis-srv3.village.gurnee.il.us/ArcGIS/rest/services/Aerial_Dispatch_2010/MapServer"/>
        </basemaps>

The only change needed for cached imagery is to change the 'type' to "tiled".

Hope this helps.
Eric


Hi there,

I've been trying to use my own basemap in flexviewer.
I've a raster layer but after I've done some researched I found out that a raster layer could not be used as a basemap.
Only dymanic, wms, tiled, image and arcIMS layers are supported to use as basemap.

Then I've tried this link: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00530000000v000000
But as a service it still shows the data type as raster layer.

My question is: what can I do with my data (which is raster) to yet use it as a basemap.

thank you
0 Kudos
DavidJosepha
Emerging Contributor
Hi Eric,

Thanks for your reply, i appreciate it.

I meant raster dataset.

I 've made a service of it then "cached" it using the example of the link I've posted earlier.
But when I type: myserver/arcgis/rest/services I see the following:

[ATTACH=CONFIG]12955[/ATTACH]

The type layer  stays raster 😞 :confused:

I've tried changing the type in the config.xml file to tiled, but it gives me an error:

Satelite layer failed to load: Fault code: null
Fault info: E0005E: Invalid tile service: http://myserver/ArcGIS/rest/services/DEMOS/Setar_Sat_2011/ImageServer
Fault details: null

So my question is what am i doing wrong?

Thank U
David
0 Kudos
EricVenden
Frequent Contributor
David,

It appears that you published the wrong type of map service...you need a rest endpoint like this:

http://gis-srv3.village.gurnee.il.us/ArcGIS/rest/services/Aerial_1939/MapServer

With MapServer at the end.

Hope this helps.

Eric

Hi Eric,

Thanks for your reply, i appreciate it.

I meant raster dataset.

I 've made a service of it then "cached" it using the example of the link I've posted earlier.
But when I type: myserver/arcgis/rest/services I see the following:

[ATTACH=CONFIG]12955[/ATTACH]

The type layer  stays raster 😞 :confused:

I've tried changing the type in the config.xml file to tiled, but it gives me an error:

Satelite layer failed to load: Fault code: null
Fault info: E0005E: Invalid tile service: http://myserver/ArcGIS/rest/services/DEMOS/Setar_Sat_2011/ImageServer
Fault details: null

So my question is what am i doing wrong?

Thank U
David
0 Kudos
EricVenden
Frequent Contributor
David,

One other thing....here is my procedure for creating a map service that contains aerial imagery:

1) I add the imagery into an mxd
2) Save it as an msd
3) Publish this msd as a service in ArcGIS Server (Map Service)
4) Cache the service



David,

It appears that you published the wrong type of map service...you need a rest endpoint like this:

http://gis-srv3.village.gurnee.il.us/ArcGIS/rest/services/Aerial_1939/MapServer

With MapServer at the end.

Hope this helps.

Eric
0 Kudos
DavidJosepha
Emerging Contributor
Yes Eric,

My bad.

[ATTACH=CONFIG]12968[/ATTACH]

[ATTACH=CONFIG]12967[/ATTACH]



This is the correct service but doesn't work good yet as basemap.
0 Kudos
DavidJosepha
Emerging Contributor
I'll try this out and let you know how it went.



David,

One other thing....here is my procedure for creating a map service that contains aerial imagery:

1) I add the imagery into an mxd
2) Save it as an msd
3) Publish this msd as a service in ArcGIS Server (Map Service)
4) Cache the service
0 Kudos
EricVenden
Frequent Contributor
Also,
1) make sure that the rest of your map services have the same coordinate system as the base map you are referencing
2) the operational layers and any other basemap layers are visible at the scales you cached the "initial" basemap layer

Eric
I'll try this out and let you know how it went.
0 Kudos
DavidJosepha
Emerging Contributor
Hi Eric,

For the first time I was able to see my own basemap in FLEX, following your suggested steps. 🙂 (progress, getting there)
But not as type "tiled" but as "dynamic" though.

Is there something maybe that I've missed out on. Because the performance of my own current basemap is slow.
When I pan to a new area it takes a while to display.

Another question, do I need to specify a new cache directory everytime i make a new basemap?

David
0 Kudos
EricVenden
Frequent Contributor
David,

After you publish the map service - then you can build the cache for that service.  You only need specify the cache scales and the image format.  I use the "default" settings from ArcGIS Server Manager (depending on how you have installed ArcGIS Server) - it puts the cache in it's own directory under the   "arcgisserver\arcgiscache" folder...

See the help on map caches:

http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#/Available_map...

Hi Eric,

For the first time I was able to see my own basemap in FLEX, following your suggested steps. 🙂 (progress, getting there)
But not as type "tiled" but as "dynamic" though.

Is there something maybe that I've missed out on. Because the performance of my own current basemap is slow.
When I pan to a new area it takes a while to display.

Another question, do I need to specify a new cache directory everytime i make a new basemap?

David
0 Kudos