Select to view content in your preferred language

Basemaps & Zoom scales

4100
7
12-07-2010 04:05 AM
by Anonymous User
Not applicable
I am pretty new in the flex application building process so I apoligize if these questions have been asked/answered already.

1) I have been having trouble with some basemaps not showing up in our flexviewer app.  i verified all the rest end points, opened them up in ArcMap & Javascript apps, when I add them in as a basemap to the config file they don't show up.  Any suggestions would be helpful.

2) I have been looking for a good post on how to change, or if it is possible to change to zoom levels that are shown on the navigation widget.  I know that the images will allow us to zoom in farther than what is being show on the map.  I have been asked if it is possible to zoom in farther than what the flexviewer allows.
Thanks,
TC
Tags (2)
0 Kudos
7 Replies
deleted-user-DeOizCraciXu
Deactivated User
I found this thread looking for an answer to #2.  I may be able to help with #1.  I recently found out that a basemap MUST be type "tiled", it cannot be anything else.  At least this is true for 9.3.1, I don't know for version 10.
0 Kudos
JoshuaCoates
Deactivated User
Todd,

1) You need to specify the extent of the basemap. If you are using a service of your own then you need to specify the initial extent as it appears in your map document in the config.xml.

<map initialextent="1987221 1431085 2224765 1647492" fullextent="1987221 1431085 2224765 1647492">
        <basemaps>
            <layer label="XXXXX" type="tiled if cached or dynamic if not" visible="true" alpha="1"
             url="http://blah.blah.blah/MapServer"/>
        </basemaps>


2) As for the zoom levels, if you cache your map, whatever scales you specify to cache the map at.....is what levels you will have on the zoom scale bar in Flex. If it is a dynamic map, I am not sure on how to do this, however, I do believe that it is possible to set up the levels of display (LOD's) of your choice. Hopefully someone else can chime in on this...


Josh C.
0 Kudos
AniketWani
Esri Contributor
1. This is where you can read more about <layer> tag.

http://help.arcgis.com/en/webapps/flexviewer/help/layer_tag.htm

2. You can specify custom lods in config file. Read <lods> tag in following doc

http://help.arcgis.com/en/webapps/flexviewer/help/mainconfig.htm

You have to specify all the lods for your map services. In your case you have to specify lods for image layer in addition to lods of tile basemap so that user can zoom in to image layer. Hope this helps.
0 Kudos
by Anonymous User
Not applicable
Thanks for all the suggestions.  I will take a look at them all and see if I can get it working.  Many Thanks!!
0 Kudos
by Anonymous User
Not applicable
Well I have been doing some checking on these suggestions, 1) I have a map extent (Initial and full) created, and the map services are tiled.  2) What I have noticed however is that the rest endpoint that I am trying to access does not have any LOD's specified.  So I would assume that if there are not LOD's then you would not see the map, correct?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Todd,

   If you don't have any LODs than the mapservice is NOT tiled/cached and you should be using dynamic in the config instead of tiled.
0 Kudos
by Anonymous User
Not applicable
That fixed the problem, Thanks.
0 Kudos