Select to view content in your preferred language

esri map tag

2269
15
08-29-2012 02:20 AM
NadeemQazi
Regular Contributor
Hi

I used following code
<esri:Map id="myMap"
     crosshairVisible="true"
     level="3">
  <esri:ArcGISDynamicMapServiceLayer url="http://149.157.138.198/ArcGIS_Server/rest/services/davesite/MapServer"/>
  </esri:Map>
it works but it does not show the scale bar only a + and - sign is shown however when i used it with the esri map address such as :
   <esri:ArcGISTiledMapServiceLayer maxScale="4500" url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
     it also shows me the full scale bar any suggestion what s wrong
regards
nadeem
Tags (2)
0 Kudos
15 Replies
RobertScheitlin__GISP
MVP Emeritus
Jefferson,

   So let me be sure of something here than. Are you talking about a custom API application of the Flex Viewer? Because the direction provided will be different.
0 Kudos
JeffersonFerreira_Ferreira
Deactivated User
Jefferson,

   So let me be sure of something here than. Are you talking about a custom API application of the Flex Viewer? Because the direction provided will be different.


Well I'm not certain how far my application may be considered custom. The application itself is the flexviewer api available to download. What I've customized are the widgets, the projection and visual elements. I hope I have answered your question.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jefferson,

   Just so you know and that is does not become a point of confusion in the future. The Flex Viewer as an application that is built using the AGS Flex API. When someone asks if you are working with a custom API application or the flex viewer, they are trying to determine if you have Only used the AGS Flex API components and built a Flex Application from scratch, not just customizing the viewer.

   So, I understand your issue to be that you are loading a image service as your first basmap and thus it is using your image services WKID to set your maps spatial reference. So my fist question would be are you using a tiled basemap at all in your flex viewer and if so why are you not loading that service first? Are all your services (i.e. image service and tiled map service) in the same WKID?
0 Kudos
JeffersonFerreira_Ferreira
Deactivated User
Jefferson, (...)

    So, I understand your issue to be that you are loading a image service as your first basmap and thus it is using your image services WKID to set your maps spatial reference. So my fist question would be are you using a tiled basemap at all in your flex viewer and if so why are you not loading that service first? Are all your services (i.e. image service and tiled map service) in the same WKID?


Robert.

Thanks for your explanation about flex viewer and custom api issues.
Well, I've tried firstly to use bing tiled services. But I have problems with map WKID, that need to be 4326. So I gave it up and decided to use only my satellite images serving them in ArcGIS Server. As result I have no more tiled services. My mapservice is not tiled too 'cause I dont see this need. All the map services and image services are at the same WKID. Now I understand that my current situation prevents me from using LOD's and thus I dont have the scale bar and zoom slider. I'm reading the documentation right now to decide what capabilities I must enable to serving my images more efficiently.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jefferson,

    So it is possible to manually load LODs in the Flex Viewer App by defining the LODs you want in the Main config.xml. Search this link for lods:

http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Main_configuration_file/01m3000...
0 Kudos
JeffersonFerreira_Ferreira
Deactivated User
Jefferson,

    So it is possible to manually load LODs in the Flex Viewer App by defining the LODs you want in the Main config.xml. Search this link for lods:

http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Main_configuration_file/01m3000...


Thanks Robert. I'll consider it.
0 Kudos