[core] don't tie Annotation geometries to Map maxzoom
Instead, geometry generation via GeoJSONVT is now bound to the hardcoded limit of the annotation tile source.
This commit is contained in:
@@ -676,13 +676,13 @@ double Map::getTopOffsetPixelsForAnnotationImage(const std::string& id) {
|
||||
}
|
||||
|
||||
AnnotationID Map::addAnnotation(const Annotation& annotation) {
|
||||
auto result = impl->annotationManager.addAnnotation(annotation, getMaxZoom());
|
||||
auto result = impl->annotationManager.addAnnotation(annotation);
|
||||
impl->onUpdate();
|
||||
return result;
|
||||
}
|
||||
|
||||
void Map::updateAnnotation(AnnotationID id, const Annotation& annotation) {
|
||||
if (impl->annotationManager.updateAnnotation(id, annotation, getMaxZoom())) {
|
||||
if (impl->annotationManager.updateAnnotation(id, annotation)) {
|
||||
impl->onUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user