[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:
Konstantin Käfer
2017-12-22 16:27:31 +01:00
parent 814c87fbab
commit ac32b41493
10 changed files with 52 additions and 36 deletions

View File

@@ -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();
}
}