Files
MapLibreParticleLab/src/mbgl/annotation/shape_annotation_impl.hpp
2015-10-20 13:54:20 -07:00

38 lines
815 B
C++

#ifndef MBGL_SHAPE_ANNOTATION_IMPL
#define MBGL_SHAPE_ANNOTATION_IMPL
#include <mbgl/annotation/annotation.hpp>
#include <mbgl/annotation/shape_annotation.hpp>
#include <mbgl/util/geo.hpp>
#include <mbgl/util/geojsonvt/geojsonvt.hpp>
#include <string>
#include <map>
namespace mbgl {
class Style;
class AnnotationTile;
class ShapeAnnotationImpl {
public:
using Map = std::map<AnnotationID, std::unique_ptr<ShapeAnnotationImpl>>;
ShapeAnnotationImpl(const AnnotationID, const ShapeAnnotation&, const uint8_t maxZoom);
LatLngBounds bounds() const;
void updateStyle(Style&);
void updateTile(const TileID&, AnnotationTile&);
const AnnotationID id;
const std::string layerID;
const ShapeAnnotation shape;
private:
mapbox::util::geojsonvt::GeoJSONVT shapeTiler;
};
}
#endif