summaryrefslogtreecommitdiff
path: root/chimere/static
diff options
context:
space:
mode:
Diffstat (limited to 'chimere/static')
-rw-r--r--chimere/static/chimere/js/jquery.chimere.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/chimere/static/chimere/js/jquery.chimere.js b/chimere/static/chimere/js/jquery.chimere.js
index 274af85..59e00c8 100644
--- a/chimere/static/chimere/js/jquery.chimere.js
+++ b/chimere/static/chimere/js/jquery.chimere.js
@@ -115,7 +115,8 @@ OpenLayers.Layer.MapQuestOSM = OpenLayers.Class(OpenLayers.Layer.XYZ, {
icon_start: null,
icon_step: null,
icon_end: null,
- mobile:false
+ mobile:false,
+ input_id:'id_point'
};
var settings = {};
/*
@@ -1452,7 +1453,8 @@ OpenLayers.Layer.MapQuestOSM = OpenLayers.Class(OpenLayers.Layer.XYZ, {
lonlat = settings.current_edit_feature.lonlat.clone().transform(
settings.map.getProjectionObject(),
EPSG_DISPLAY_PROJECTION);
- $('#id_point').val('POINT(' + lonlat.lon + ' ' + lonlat.lat + ')');
+ $('#'+settings.input_id).val(
+ 'POINT(' + lonlat.lon + ' ' + lonlat.lat + ')');
if($('#live_latitude').length){
$('#live_latitude').val(lonlat.lat);
$('#live_longitude').val(lonlat.lon);
@@ -1674,7 +1676,7 @@ OpenLayers.Layer.MapQuestOSM = OpenLayers.Class(OpenLayers.Layer.XYZ, {
jQuery('#id_route').val(current_geo);
var vertices = current_geo.getVertices();
if (vertices){
- jQuery('#id_point').val(vertices);
+ jQuery("#"+settings.input_id).val(vertices);
}
},
updateNominatimName:function(lonlat, response_id){