Select to view content in your preferred language

USNG Widget with Different Projection Coordinate System

2722
5
11-08-2013 03:03 AM
LixinHuang
Regular Contributor
We are trying to find the USNG widget with different Projection Coordinate System, like NAD_1983_HARN_StatePlane_Florida_East_FIPS_0901_Feet. It seems that we can only find one for Web Mercator in ArcGIS Resources website. Does anybody know where we can find the widget we want or how we can make one by ourselves? Any help or suggestion would be greatly appreciated.
Tags (2)
0 Kudos
5 Replies
YueWu1
by Esri Regular Contributor
Esri Regular Contributor
Hi Lixin,

I don't know about any widget has that the projection, but theoretically by using Flex API can hit the map server to re-project by using the GeometryService class, you can check this sample here:
https://developers.arcgis.com/en/flex/sample-code/project-a-point.htm

For Flex Viewer, check about the map content config file:
http://resources.arcgis.com/en/help/flex-viewer/concepts/#/Map_content/01m30000005p000000/
0 Kudos
LixinHuang
Regular Contributor
We tried to use Geometry service to reproject the geometry of the mouse pointer in other PCS for displaying the USNG coordinate correctly. We can feel the latency while users move the mouse. However, we had a hard time in reprojecting USNG grid geometry since the Widget uses two classes "SimpleGraticuleLayer" and "MgrsLayer" in a Flex library "FlexProjections.swc" to draw and label the grid. And it only supports Web Mercator.
0 Kudos
AnthonyGiles
Honored Contributor
Lixin,

The grids are actually graphics that are drawn on the map and are created each time you pan by working out the max/min coordinate values for the eastings and northings within the the viewable area; this is all done client side so does not touch the geometry service.

If you contact Kerry Coffin at Esri who created the original code I am sure he would supply the .as files required so that you could re-write them for your own coordinate system or he might even have other grids for America already.

Regards

Anthony
0 Kudos
LixinHuang
Regular Contributor
Anthony,

Thanks for your suggestions. Do you know Kerry Coffin's contact information?

Lixin,

The grids are actually graphics that are drawn on the map and are created each time you pan by working out the max/min coordinate values for the eastings and northings within the the viewable area; this is all done client side so does not touch the geometry service.

If you contact Kerry Coffin at Esri who created the original code I am sure he would supply the .as files required so that you could re-write them for your own coordinate system or he might even have other grids for America already.

Regards

Anthony
0 Kudos
AnthonyGiles
Honored Contributor
lixin,

His username is kcoffin

Regards

Anthony
0 Kudos