don't crash if non-searchable locations are in groups
This commit is contained in:
parent
e52a288fa5
commit
439d43b778
1 changed files with 4 additions and 0 deletions
|
@ -1165,6 +1165,10 @@ c3nav = {
|
||||||
},
|
},
|
||||||
_location_point_overrides: {},
|
_location_point_overrides: {},
|
||||||
_add_location_to_map: function(location, icon) {
|
_add_location_to_map: function(location, icon) {
|
||||||
|
if (!location) {
|
||||||
|
// if location is not in the searchable list...
|
||||||
|
return
|
||||||
|
}
|
||||||
// add a location to the map as a marker
|
// add a location to the map as a marker
|
||||||
if (location.locations) {
|
if (location.locations) {
|
||||||
var bounds = {};
|
var bounds = {};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue