Select to view content in your preferred language

Open grid reference from external source e.g. Excel

4751
4
01-05-2016 12:53 AM
JoeBowker
Deactivated User

Good morning,

Our company uses ArcGIS API/Viewer for Flex and I have a query:

Is it possible to open a Grid Reference e.g. SN1234512345 directly without having to open up the web page and click Grid Ref and then manually input the reference?

I'll give an example of what I'm after - http://gridreferencefinder.com/?gr=ST1700988474

The above takes you directly to a location that is specificied elsewhere ie.e. ST1700988474.

Is this possible with the ArcGIS API Viewer?

Cheers


Joe

0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus

Joe,

   You can search in the Flex Viewer GeoNet Space and find threads like this that talk about using URL parameters in the the viewer:

Open viewer centered at coordinates passed in URL parameters and display marker

url parameters location and custom config.xml

0 Kudos
JoeBowker
Deactivated User

Thanks for the reply, I'm fairly new to this forum so should have probably checked!

The trouble I'm having is that I don't know the source/config of the installation as it's on a main works server.

I'm just querying if there is a way to do it without getting involved with the config files etc.

Cheers

Joe

0 Kudos
JoeBowker
Deactivated User

Robert,

Thanks again for the reply - since posting, I have worked out how to specific a config file, and also found the existing config file for the viewer.

I've basically copied that file to my desktop and tried to use it as a custom config file just to see if that works. When I point it to index.html?config=mycustomconfig.xml I get an error saying:

A problem occurred while parsing the configuration file mycustomconfig.xml? Error #1085

I've basically just copied the exact config file that works - am I missings something obvious?

Cheers

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Joe,

   The likely issue is that you copied the config to your desktop and thus made it inaccessible to your web application. the config would need to be in a directory that is accessible by your web server.

0 Kudos