[OpenStreetMap] #4872: Add "markerlink" to main map view

OpenStreetMap trac at noreply.openstreetmap.org
Thu Jun 6 02:13:08 UTC 2013


#4872: Add "markerlink" to main map view
--------------------------+-------------------------
  Reporter:  gs25         |      Owner:  rails-dev@…
      Type:  enhancement  |     Status:  closed
  Priority:  minor        |  Milestone:
 Component:  website      |    Version:
Resolution:  wontfix      |   Keywords:
--------------------------+-------------------------

Comment (by gs25):

 Point taken, but I didn't add the ticket because I thought surely one more
 ticket would make it happen.  I came up with the idea independently and
 canvassed support on the mailing list, with a very positive response.  I
 have since found other discussions of the same idea on mailing lists and
 forums, all expressing a desire for this feature.

 I have made a local copy the page source for the OSM slippy map, and
 edited it to add absolute instead of relative paths to the scripts etc.  I
 added a 'markerlink' link, and wrote a tiny piece of javascript to do
 string substitution (replace lat/lon with mlat/mlon).  What I want to do
 is to make the 'markerlink' fetch the 'permalink' URL and pass it to the
 string substitution function, it doesn't work yet but I am still fiddling
 with that.

 I also found some of your (?) code here:
 http://rcos.rpi.edu/projects/jumpstart/commit/implement-a-generic-system-
 for-updating-coordinates-on-links/

 I assume the 'permalinkanchor' code has been moved somewhere else, but can
 it be copied/pasted/edited like this?:

 {{{
 node = $("markerlinkanchor");
 if (node) {
   var args = getArgs(node.href);
   args["mlat"] = lat;
   args["mlon"] = lon;
   args["zoom"] = zoom;
   if (layers) {
     args["layers"] = layers;
   }
   if (objtype && objid) {
     args[objtype] = objid;
   }
   node.href = setArgs(node.href, args);
 }
 }}}

 I know you are not supportive of this idea, but thank you for discussing
 it.

-- 
Ticket URL: <https://trac.openstreetmap.org/ticket/4872#comment:7>
OpenStreetMap <http://www.openstreetmap.org/>
OpenStreetMap is a free editable map of the whole world



More information about the rails-dev mailing list