[core] Fix LatLngBounds default coordinates
LatLngBounds southwest and northeast coordinate points were inverted, so they could be extended via LatLngBounds::extend(). However, this looks confusing and error-prone. A static LatLngBounds::getExtendable() is added to address cases when we want to extend LatLngBounds.
This commit is contained in:
@@ -68,7 +68,7 @@ AnnotationIDs AnnotationManager::getPointAnnotationsInBounds(const LatLngBounds&
|
||||
}
|
||||
|
||||
LatLngBounds AnnotationManager::getBoundsForAnnotations(const AnnotationIDs& ids) const {
|
||||
LatLngBounds result;
|
||||
LatLngBounds result = LatLngBounds::getExtendable();
|
||||
|
||||
for (const auto& id : ids) {
|
||||
if (pointAnnotations.find(id) != pointAnnotations.end()) {
|
||||
|
||||
Reference in New Issue
Block a user