Local Base Maps

1024
3
05-04-2011 12:10 PM
GregoryPierce
New Contributor II
Hi everyone,
I posted in this forum last week and Robert was very helpful so I thought I'd give it another try.  I'm trying to replace the default basemaps in the viewer with some local basemaps that are supplied by the Utah Automated Geographic Reference Center.  The basemap services can be found here if anyone would like to take a look at them, http://mapserv.utah.gov/arcgis/rest/services/   These are tiled basemaps that as far as I can tell should integrate fine with the Flex viewer.  I've played around with the intial extents and full extents to see if i could get that to work, but have had no luck.  The basemaps I want are in UTM Zone 12, not the Web Mercator, does that have anything to do with it?  My operational layers are not in Web Mercator and it comes in just fine.  The arcgis online services will still come in, but the mapserv.utah.gov service just creates a blank basemap.  I'm wondering if anyone has any suggestions.  Any help would be very much appreciated.

Here is the code for the basemap I want to get as I have it in v.2.3

    <map wraparound180="true" initialextent="-12544000 4965000 -12382000 5071000" fullextent="-20000000 -20000000 20000000 20000000" top="40">
        <basemaps>
            <layer label="Streets" type="tiled" visible="true"
                   url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
            <layer label="Hybrid" type="tiled" visible="false"
                   url="http://mapserv.utah.gov/ArcGIS/rest/services/UtahBasemap-Hybrid/MapServer"/>
            <layer label="Topo"    type="tiled" visible="false"
                   url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/>
        </basemaps>




Thanks,
Greg Pierce
GIS Specialist
Weber Basin Water Conservancy District
Tags (2)
0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus
Greg,

   You can not mixed tiled map services in different projections. Tiled map service means that little images of the map are made at specific scales and thus re-projection is not possible.
0 Kudos
GregoryPierce
New Contributor II
Robert,
So if I want to use the local base maps provided, do I then need to remove the arcgis online basemaps?  And I'm still kind of confused on the intial extent numbers.  I know they are the areas you wish to zoom into, but how precise do they need to be and in what order are they listed? ie: xmin xmax ymin ymax.   Do you know if there is anything else I need to do besides those two things?

Thanks,
Greg
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Greg,

   You will need to remove esri's basemaps and use some extent values that match the Utah basemap service that you will be using like:

XMin: 206317.75
YMin: 4066835.375
XMax: 696208.25
YMax: 4681518.125

The format is "xmin ymin xmax ymax"

Your data layers will need to be type="dynamic" so that they can be reprojected on the fly to the basemaps spatial reference.
0 Kudos