AnsweredAssumed Answered

Org address being included in URL

Question asked by andrewhargreaves_sedaru on Sep 11, 2019
Latest reply on Sep 13, 2019 by PKlingman-esristaff

I have an expression in a web map popup which pulls a features Lat/Long and combines it into a URL:

var g = Geometry($feature);
var lon = g.x/111319.49079;
var lat = g.y/6378137.0;
lat = 90*(4*Atan(Exp(Lat)) - Pi)/Pi;
var url = Concatenate("<a href=http://maps.google.com/maps?daddr=",Round(lat, 5),",",Round(lon, 5),">Directions</a>")
return url

I then set my popup as follows:

 

However for some reason my URL get's prefaced with my Org's URL to result in:

http://idmodeling.maps.arcgis.com/home/webmap/%3Ca%20href=http:/maps.google.com/maps?daddr=33.7187,-116.25616%3EDirectio… 

 

Any clues?

Outcomes