Community
All Communities
Products
ArcGIS Pro
ArcGIS Survey123
ArcGIS Online
ArcGIS Enterprise
Data Management
ArcGIS Experience Builder
Geoprocessing
ArcGIS Web AppBuilder
ArcGIS Field Maps
ArcGIS Dashboards
ArcGIS StoryMaps
All Products Communities
Industries
Education
Water Resources
State & Local Government
Transportation
Gas and Pipeline
Water Utilities
Imagery and Remote Sensing Insights (IRIS) COP
Roads and Highways
Natural Resources
Telecommunications
Electric
All Industries Communities
Developers
Python
JavaScript Maps SDK
Native Maps SDKs
ArcGIS API for Python
ArcGIS Pro SDK
ArcObjects SDK
Developers - General
ArcGIS REST APIs and Services
ArcGIS Online Developers
Game Engine Maps SDKs
File Geodatabase API
All Developers Communities
Global
Comunidad Esri Colombia - Ecuador - Panamá
ArcGIS 開発者コミュニティ
Czech GIS
Europe
Asia Pacific
Americas
ArcNesia
Comunidad GEOTEC
Esri India
GeoDev Germany
ArcGIS Content - Esri Nederland
All Global Communities
All Communities
Developers
User Groups
Products
Industries
Services
Community Resources
Global
Events
Networks
Learning
ArcGIS Topics
View All Communities
ArcGIS Ideas
GIS Life
Community Resources
Community Help Documents
Community Blog
Community Feedback
Member Introductions
All Community Resources
Sign In
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Show
only
|
Search instead for
Did you mean:
Cancel
Home
:
All Communities
:
Developers
:
ArcGIS API for Flex (Retired)
:
ArcGIS API for Flex Questions
:
Re: map.units support in agslib-3.0pre-2012-03-15
Options
Subscribe to RSS Feed
Mark Topic as New
Mark Topic as Read
Float this Topic for Current User
Bookmark
Subscribe
Mute
Printer Friendly Page
Select to view content in your preferred language
Translate Now
map.units support in agslib-3.0pre-2012-03-15
Subscribe
2535
12
04-15-2012 08:40 PM
by
TomSchuller
Frequent Contributor
04-15-2012
08:40 PM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Hy,
I just wanted to migrate some widgets to the FlexViewer3.0.
Unfortantly, I'm blocked by the property "
units
" in the "
Map
" class.
In the "What's new" and "Migrating 2.5 to 3.0", I dont' find anything about a change on that property:
http://resourcesbeta.arcgis.com/en/help/flex-api/concepts/index.html#/What_s_new_in_ArcGIS_API_for_F...
http://resourcesbeta.arcgis.com/en/help/flex-api/concepts/index.html#/Migrating_from_2_5_to_3_0/017p...
In the API reference, I don't find a description for units:
http://resourcesbeta.arcgis.com/en/help/flex-api/apiref/com/esri/ags/Map.html#units
On the other side, reading the doc of the scale property, there is a relation to "units":
http://resourcesbeta.arcgis.com/en/help/flex-api/apiref/com/esri/ags/Map.html#scale
Is this a bug of a missed property or an undocumented change in the 3.0 api.
Thanks,
Tom
Tags
(2)
Tags:
flex
web_developers
Reply
0
Kudos
All Posts
Previous Topic
Next Topic
12 Replies
by
TomSchuller
Frequent Contributor
04-17-2012
06:49 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Hy,
I have written an advanced PrintWidget for the viewer.
You can find a demo here:
http://gis.pch.etat.lu/flexViewerPrint/
The backend is a custom SOE.
The sources can be found here:
http://bitbucker.schuller.lu
In fact, I need the "map.units" to calculate the current map extent based on the paper format and the map scale.
?? mapUnits = x paperUnits * mapScale
Tom
Reply
0
Kudos
by
TomSchuller
Frequent Contributor
06-01-2012
05:53 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Hy,
did you have news if you reintegrate the property in the final Flex API version?
Tom
Reply
0
Kudos
by
DasaPaddock
Esri Regular Contributor
06-07-2012
11:34 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Tom,
You can use Ivan's suggestion of getting the units from the first layer in the Map. This is all the Map was doing before unless it was explicitly set.
See:
http://forums.arcgis.com/threads/55275-map.units-support-in-agslib-3.0pre-2012-03-15?p=189991&viewfu...
Reply
0
Kudos
Post Reply
«
Previous
1
2
Next
»
«
Previous
1
2
Next
»