fix #85
This commit is contained in:
@ -141,8 +141,13 @@ window.scrollBottom = function(elm) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
window.zoomToAndShowPortal = function(guid, latlng) {
|
window.zoomToAndShowPortal = function(guid, latlng) {
|
||||||
renderPortalDetails(guid);
|
|
||||||
map.setView(latlng, 17);
|
map.setView(latlng, 17);
|
||||||
|
// if the data is available, render it immediately. Otherwise defer
|
||||||
|
// until it becomes available.
|
||||||
|
if(window.portals[guid])
|
||||||
|
renderPortalDetails(guid);
|
||||||
|
else
|
||||||
|
urlPortal = guid;
|
||||||
}
|
}
|
||||||
|
|
||||||
// translates guids to entity types
|
// translates guids to entity types
|
||||||
|
Reference in New Issue
Block a user