Select to view content in your preferred language

MGRS Widget for Flex Viewer

7450
47
Jump to solution
02-15-2012 08:37 PM
MarcGraham
Deactivated User
Hi,

Has anyone got a compiled widget for the Flex Viewer that returns the current cursor location as an MGRS grid?

It would be great if it worked with multiple coordinate systems.

regards,

Marc
Tags (2)
0 Kudos
47 Replies
KennethLyons
Emerging Contributor
Thank you again for your help so far.  I've put hiddenLayer_ in front of every layer I could find and yet they still appear in the TOC when I open it.  Now they layers are displayed in the TOC as "hiddenLayer_LayerName"...  Am I doing this incorrectly?
0 Kudos
AnthonyGiles
Honored Contributor
Kenneth,

Sorry my last post may not have been clear, if you are adding the grid by clicking the check boxes on the coordinate bar then you add the hiddenLayers_ to the front of the layer names in the coordinate mxml. This works fine for me using the out of the box layerlist, if you are using a customised version this may not work.

Regards

Anthony
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Kenneth,

   Hang tight the TOC Widget needs an update.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ken,

   Go get version 2.5.0.2 of the TOC Widget and it should work just fine.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Anthony,

   Here is a version of the Coordinate widget that has the code refactored and uses the Viewers Styles for the whole widget, as well as some other minor code tweaks.

Set the maps bottom attribute to 30 and you will also want to adjust the OverViewWidget bottom to 23
0 Kudos
AuraRamos_Lora
Deactivated User
Hello from Mexico

Could help, I have an error

1046: Type was not found or was not a compile-time constant: CoordinateTransformation.

- I'm using the library agslib-2.5-2011-11-30.swc and here is not the kind com.esri.ags.geod.geom.MoreUtils
and look on page http://resources.esri.com/help/9.3/arcgisserver/apis/flex/apiref/index.html

and can not find the classes:

import com.esri.ags.geod.geom.MoreUtils
import com.esri.ags.geod.CoordinateTransformation
import com.esri.ags.geod.ProjectedCS


thank you very much and sorry for my English
0 Kudos
AnthonyGiles
Honored Contributor
Ranura,

You will need the libraries from the original widget found here:

http://www.arcgis.com/home/item.html?id=56d4d2ed5d474eb4b8e29973d2376652

Regards

Anthony
0 Kudos
AuraRamos_Lora
Deactivated User
Thanks for the prompt response but if I use the original library I get errors in the entire project. I can use both? you suggest me please?. I'm using the latest version ArcGisViewerforFlex-flexviewer -2.5 and need to include the grid ..

regards
0 Kudos
AnthonyGiles
Honored Contributor
ranaura,

I am not quite sure what is happening here you just need to add the XGeom.swc and FlexProjections.swc to your libs folder and refresh your project.

Regards

Anthony
0 Kudos
AuraRamos_Lora
Deactivated User
Thank you. Use the latest version you uploaded to the forum and worked perfectly. Thanks again.
regards 😄
0 Kudos