Changeset 8390d78 in osmose-frontend


Ignore:
Timestamp:
Nov 24, 2012 6:39:34 PM (5 years ago)
Author:
Frédéric Rodrigo <frodrigo@…>
Branches:
master
Children:
c4cbac6
Parents:
90ce398
git-author:
Frédéric Rodrigo <frodrigo@…> (24/11/2012 18:18:34)
git-committer:
Frédéric Rodrigo <frodrigo@…> (24/11/2012 18:39:34)
Message:

Fix marker url query and permalink

File:
1 edited

Legend:

Unmodified
Added
Removed
  • static/map/map.js

    rcf06a02 r8390d78  
    424424    ch = ch.replace(/,$/, ''); 
    425425 
    426     // rebuild the link for downloading points text file according to current form settings 
    427     var bbox = map.getExtent(); 
    428     bbox = bbox.transform(map.getProjectionObject(), new OpenLayers.Projection("EPSG:4326")) 
    429     bbox = bbox.toBBOX(); 
    430  
    431426    var permalink = plk.element; 
    432427    permalink.href = permalink.href.replace(/&item=[-0-9x,]*/, '').replace(/\?item=[-0-9x,]*&?/, '?') + "&item=" + ch; 
    433428    permalink.href = permalink.href.replace(/&level=[-0-9x,]*/, '').replace(/\?level=[-0-9x,]*&?/, '?') + "&level=" + document.myform.level.value; 
    434429 
     430    var params = 
     431        "?lat=" + document.myform.lat.value + 
     432        "&lon=" + document.myform.lon.value + 
     433        "&zoom=" + document.myform.zoom.value + 
     434        "&source=" + document.myform.source.value + 
     435        "&user=" + document.myform.user.value + 
     436        "&item=" + ch + 
     437        "&level=" + document.myform.level.value; 
     438 
    435439    pois.loadText(params); 
    436440 
    437441    if (heat.visibility) { 
    438         var params = 
    439             "?source=" + document.myform.source.value + 
    440             "&user=" + document.myform.user.value + 
    441             "&item=" + ch + 
    442             "&level=" + document.myform.level.value; 
    443442        var url = "heat/${z}/${x}/${y}.png" + params; 
    444443        if (heat.url != url) { 
Note: See TracChangeset for help on using the changeset viewer.