Select to view content in your preferred language

Recognizing url links

1126
6
03-30-2012 05:59 AM
GreggBreton
New Contributor III
Received an excel spreadsheet with url links to weather stations. Copy and paste the url into a broswer and it takes you to the particular weather station. Created a shapefile to upload to ArcGIS online. The url is not recoginized

Proceeded to test in ArcMap, links to weather station ok. If I configured a popup and just tested the "link to image" and populated with the link field, it recognizes the link and takes me to the  weather station.

When you use the identify tool and click on a feature in ArcGIS Online, it does not recognize the url link. Tried to replace [ with [ and ] with ]
I tried a few different scenarios. For example truncating the url down to sensor-stations, it is recognized. I believe it is the brackets? Has anyone had this experience?

I have attached a shapefile with a couple hundred locations, below is an example of the url links


ILIAMNA RIVER NEAR PEDRO BAY 9ESE     59.75861111   -153.8447222       http://data.aoos.org/maps/sensors/#l=sensor-stations
Kashwitna River near Willow                     61.926389 -150.070833 http://data.aoos.org/maps/sensors/#l=sensor-stations
Chalkyitsik                                   66.64946667 -143.7274333 http://data.aoos.org/maps/sensors/#l=sensor-stations
Allen River near Aleknagik                     60.15 -158.733333 http://data.aoos.org/maps/sensors/#l=sensor-stations
Prudhoe Bay                                   70.275 -148.565               http://data.aoos.org/maps/sensors/#l=sensor-stations



[ATTACH=CONFIG]13136[/ATTACH]
0 Kudos
6 Replies
by Anonymous User
Not applicable
Original User: mikem

Explorer Online doesn't convert the URLs to hyperlinks. It's a current limitation. However, the ArcGIS.com map viewer does. Here's a map I made with your sample data. The links work.

http://bit.ly/HsBSgI

Thanks,

Mike
0 Kudos
ChandraMiller
New Contributor
mikem,
Is the statement below still true?

"Explorer Online doesn't convert the URLs to hyperlinks."

My map is located here  http://bit.ly/T5gYY7.  The hyperlinks in the popups look and work exactly how I want them to on this map.  This file is a .csv file saved as UTF-8.  The columns have html code in them.  The problem is this map crashes the ARCGIS esri app.

I made a second map located here http://bit.ly/T5hiGj and took out the html code out and kept the links.  It is working as an app.  There is the long string for the url which isent ideal but it is working.  But when you open it on a mobile phone they hyperlink is not recognized at all.

I am trying to make one map work for everything but not sure if I am going to be able too.

Thanks,

Chandra
0 Kudos
by Anonymous User
Not applicable
Original User: mikem

Chandra,

The statement is still true about Explorer Online.

The hyperlinks in the second map don't display as links for me in ArcGIS.com Map Viewer either. It may have something to do with the URL and how we recognize that it is a URL. If you can share the CSV used to create the layer, I can take a look.

Thanks,

Mike
0 Kudos
ChandraMiller
New Contributor
Mikem,

I have attached a .rar with two files.  The weather.csv file has the html hyperlink code in within the file. It is what I am using for the Web Mapping Application FCDMC ALERT Station Locator Map at http://bit.ly/TYQ4Cl and the FCDMC ALERT Station Locator Web Map at http://bit.ly/UTMcBv.  The map looks great on desktop computers and mobile phones but they will not open through the ArcGIS ESRI App.

The weather_app.csv file is the .csv file that I am using for the FCDMC App Map at http://bit.ly/10Or1a1.  I took all of the html out of the .csv file and it is opening through the ArcGIS ESRI App.  The links are active through the app but that's it. 

Any advice/ideas/suggestions would be appreciated.

Thanks,

Chandra
0 Kudos
by Anonymous User
Not applicable
Original User: mikem

Chandra

I too am unable to open your map on the Esri iOS app. We'll have to check why it's failing.

I was able to add weather.csv into a map, and it displays fine in a web browser. The HTML code you have put in for the field values get interpreted by the web browser and they become links. In the iOS app, however, the HTML code just appears as HTML code because it doesn't get interpreted. The web browser is what is converting the text.

Here are some options to make this work.

1. Change your links in the CSV file so that they start with http://, without any text in front of it. For example, for this record, remove the number and dash in front.

5943 - http://156.42.96.39/php/showdata4.php/?ID=5943&NM=200

In ArcGIS.com, this link will display with text that says "More Info". On the iOS device, you will still see the full URL, but it will be clickable.

2. Modify your CSV file so that the Fields don't contain the full URL, but rather the variable part of the URL. For example, for the Image and Dewpoint fields, I modified the data to appear as the following for the Tiger Wash Fan record. You would do all fields and all records.

5140.jpg
?ID=5142&NM=200

Doing this will allow you to create a custom popup display. Then, when you add the layer to the web map, you will define a custom popup display.  You then can enter any text you want, and make it a link that will work on the phone and browser. Use braces {} for field name substitution in the link. See the attached image.

Hope this helps,

Mike
0 Kudos
ChandraMiller
New Contributor
I edited my files like you suggested in option 2 and it is working great in the app!  Thank you so much for your suggestions.  I just need to do a little editing to my text files and I will be on my way!  Thanks so much!
0 Kudos