0

Fix up pull request #726

This commit is contained in:
Andrew Chin
2012-06-03 22:55:20 -04:00
parent e0a4976e6a
commit 7f1ccdc156
2 changed files with 4 additions and 6 deletions

View File

@@ -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

View File

@@ -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);
}
}