Added poiDropdownTitle variable to configfile to be able to customise the "Signs" dropdown title, as this might not be relevant if people have different filters.
This commit is contained in:
@@ -196,14 +196,18 @@ def main():
|
|||||||
markerSetDict[name]['raw'].append(d)
|
markerSetDict[name]['raw'].append(d)
|
||||||
#print markerSetDict
|
#print markerSetDict
|
||||||
|
|
||||||
|
poiDropdownTitle = config.get('poiDropdownTitle', 'Signs')
|
||||||
|
|
||||||
with open(os.path.join(destdir, "markersDB.js"), "w") as output:
|
with open(os.path.join(destdir, "markersDB.js"), "w") as output:
|
||||||
output.write("var markersDB=")
|
output.write("var markersDB=")
|
||||||
json.dump(markerSetDict, output, indent=2)
|
json.dump(markerSetDict, output, indent=2)
|
||||||
output.write(";\n");
|
output.write(";\n");
|
||||||
|
output.write("var poiDropdownTitle = '%s';\n" % poiDropdownTitle)
|
||||||
with open(os.path.join(destdir, "markers.js"), "w") as output:
|
with open(os.path.join(destdir, "markers.js"), "w") as output:
|
||||||
output.write("var markers=")
|
output.write("var markers=")
|
||||||
json.dump(markers, output, indent=2)
|
json.dump(markers, output, indent=2)
|
||||||
output.write(";\n");
|
output.write(";\n");
|
||||||
|
output.write("var poiDropdownTitle = '%s';\n" % poiDropdownTitle)
|
||||||
with open(os.path.join(destdir, "baseMarkers.js"), "w") as output:
|
with open(os.path.join(destdir, "baseMarkers.js"), "w") as output:
|
||||||
output.write("overviewer.util.injectMarkerScript('markersDB.js');\n")
|
output.write("overviewer.util.injectMarkerScript('markersDB.js');\n")
|
||||||
output.write("overviewer.util.injectMarkerScript('markers.js');\n")
|
output.write("overviewer.util.injectMarkerScript('markers.js');\n")
|
||||||
|
|||||||
@@ -440,7 +440,7 @@ overviewer.views.SignControlView = Backbone.View.extend({
|
|||||||
|
|
||||||
|
|
||||||
var controlText = document.createElement('DIV');
|
var controlText = document.createElement('DIV');
|
||||||
controlText.innerHTML = "Signs";
|
controlText.innerHTML = poiDropdownTitle;
|
||||||
|
|
||||||
var controlBorder = document.createElement('DIV');
|
var controlBorder = document.createElement('DIV');
|
||||||
$(controlBorder).addClass('top');
|
$(controlBorder).addClass('top');
|
||||||
|
|||||||
Reference in New Issue
Block a user