Select to view content in your preferred language

Screen Resolution

4308
16
06-09-2011 02:21 AM
MohammedIsmail
Emerging Contributor
Hi

i want my application to run on any resolution weather it is 600/800/1024

like it should get displayed full when i open it without any off screen business

how can i do that

Thanks
Ismail
Tags (2)
0 Kudos
16 Replies
NasifAlshaier
Deactivated User
Nasif,

   Because you are posting to the Flex API forum and not the Flex Viewer forum (as you should be), you have to be specific that you are speaking of the Flex Viewer Application. The Flex Viewer app will scale the map to what ever screen resolution that you are on automatically, unless you have manipulated the code and broke that capability. Do you have a screenshot of the map not scaling to full monitor width and height? Did you change the source code some where that could have broken this?

All Flex Viewer questions should be posted here:

http://forums.arcgis.com/forums/111-ArcGIS-Viewer-for-Flex

Andrew,

   Pardon me jumping in.



Hi Robert..

I changed the map extent in the config.xml file so I can see the miami-dade county extent..

<configuration>
    <title>Public Works Department</title>
    <subtitle>a Technology Services Division</subtitle>
    <logo>assets/images/logo.png</logo>
    <style>
        <colors>0xFFFFFF,0x333333,0x101010,0x000000,0xFFD700</colors>
        <alpha>0.8</alpha>
    </style>
    <!-- replace the following url with your own geometryservice -->
    <geometryservice url="http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer" />
    <!-- replace the following key with your own Bing key -->
    <bing key="Ahw1due6dkmZg98wUJJYLrVmYlDik4oleCg6hoNqx6l2jFYRToImQH1HfH-asjjH"/>

    <!-- UI elements -->
    <widget left="10"  top="50"    config="widgets/Navigation/NavigationWidget.xml" url="widgets/Navigation/NavigationWidget.swf"/>
    <widget right="-2" bottom="-2" config="widgets/OverviewMap/OverviewMapWidget.xml" url="widgets/OverviewMap/OverviewMapWidget.swf"/>
    <widget left="0"   top="0"     config="widgets/HeaderController/HeaderControllerWidget.xml" url="widgets/HeaderController/HeaderControllerWidget.swf"/>

   <map      initialextent="-8986000 2944500 -8850000 2974700"
             fullextent="-8986000 2946500 -8850000 2974700"
        top="40">

Thanks
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Nasif,

   So I don't see what the issue is then the map is filling 100% of the browser?....
0 Kudos
NasifAlshaier
Deactivated User
Nasif,

   So I don't see what the issue is then the map is filling 100% of the browser?....


HI Robert..

the extent of the map changes.. Also, the time widget bar does display and the menu bottons get shifted to the right..

thanks
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Nasif,

  
extent of the map changes
That's just the way it is. The map will not automatically attempt to reset to the initial extent when the map is resized. If you really think about it you would not want it to do that. Here would be the scenario if it did that: A user would open the app and pan around the map to a different location and then decides that they wanted to resize the browser which resizes the map and thus the map would automatically return to the initial extent (BAD).

You have a customized map switcher in your map so there is no telling what is going wrong there.

The time widget... Hmm. do you have the x and y set in the config.xml?
0 Kudos
NasifAlshaier
Deactivated User
Nasif,

    That's just the way it is. The map will not automatically attempt to reset to the initial extent when the map is resized. If you really think about it you would not want it to do that. Here would be the scenario if it did that: A user would open the app and pan around the map to a different location and then decides that they wanted to resize the browser which resizes the map and thus the map would automatically return to the initial extent (BAD).

You have a customized map switcher in your map so there is no telling what is going wrong there.

The time widget... Hmm. do you have the x and y set in the config.xml?


Hi Robert..

the x,y coordinate for the time widget is in the timewidget.mxml file, not the config.mxl..

Thanks
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Nasif,

  Hmm. I would not hard code the x and y of a widget in the MXML code. the widget tag in the main config.xml can have a x and y or better yet a top or bottom and left or right value defined.
0 Kudos
NasifAlshaier
Deactivated User
Nasif,

  Hmm. I would not hard code the x and y of a widget in the MXML code. the widget tag in the main config.xml can have a x and y or better yet a top or bottom and left or right value defined.


thank you Robert.

I will try this..

Nasif
0 Kudos