diff --git a/docs/signs.rst b/docs/signs.rst index d0487e2..8384694 100644 --- a/docs/signs.rst +++ b/docs/signs.rst @@ -113,7 +113,7 @@ The following keys are accepted in the marker dictionary: example above) ``createInfoWindow`` - Optional. Specifies wether or not the icon displays a spezial info window on click. Defaults to true + Optional. Specifies whether or not the icon displays an info window on click. Defaults to True Generating the POI Markers diff --git a/overviewer_core/data/js_src/views.js b/overviewer_core/data/js_src/views.js index ae1a39e..179d0b0 100644 --- a/overviewer_core/data/js_src/views.js +++ b/overviewer_core/data/js_src/views.js @@ -458,12 +458,10 @@ overviewer.views.SignControlView = Backbone.View.extend({ 'icon': iconURL, 'visible': false }); - if(entity['createInfoWindow']) { - if (entity.createInfoWindow) { - overviewer.util.createMarkerInfoWindow(marker); - } + if(entity['createInfoWindow'] == true) { + overviewer.util.createMarkerInfoWindow(marker); } else { - if(dataRoot[i].createInfoWindow) { + if(dataRoot[i].createInfoWindow == true) { overviewer.util.createMarkerInfoWindow(marker); } }