[core] Remove error-prone setlatLng overload
This commit is contained in:
@@ -304,7 +304,7 @@ void Map::moveBy(const ScreenCoordinate& point, const AnimationOptions& animatio
|
||||
|
||||
void Map::setLatLng(const LatLng& latLng, const AnimationOptions& animation) {
|
||||
impl->cameraMutated = true;
|
||||
setLatLng(latLng, optional<ScreenCoordinate> {}, animation);
|
||||
setLatLng(latLng, animation);
|
||||
}
|
||||
|
||||
void Map::setLatLng(const LatLng& latLng, const EdgeInsets& padding, const AnimationOptions& animation) {
|
||||
@@ -313,12 +313,6 @@ void Map::setLatLng(const LatLng& latLng, const EdgeInsets& padding, const Anima
|
||||
impl->onUpdate();
|
||||
}
|
||||
|
||||
void Map::setLatLng(const LatLng& latLng, optional<ScreenCoordinate> anchor, const AnimationOptions& animation) {
|
||||
impl->cameraMutated = true;
|
||||
impl->transform.setLatLng(latLng, anchor, animation);
|
||||
impl->onUpdate();
|
||||
}
|
||||
|
||||
LatLng Map::getLatLng(const EdgeInsets& padding) const {
|
||||
return impl->transform.getLatLng(padding);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user