diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-06-11 13:57:33 -0400 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-06-11 17:26:37 -0400 |
commit | 2435c1ad2603432186ee61eb4c423244a088bc51 (patch) | |
tree | 2377c2af37ef8c5ed21e1cf94c916141ebd57d7d /include/mbgl/annotation | |
parent | f46328655e027bf490692fcde4aab770912aac8d (diff) | |
download | qtlocation-mapboxgl-2435c1ad2603432186ee61eb4c423244a088bc51.tar.gz |
use array of structs rather than parallel arrays for annotations
Diffstat (limited to 'include/mbgl/annotation')
-rw-r--r-- | include/mbgl/annotation/point_annotation.hpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/mbgl/annotation/point_annotation.hpp b/include/mbgl/annotation/point_annotation.hpp new file mode 100644 index 0000000000..17b6fe5369 --- /dev/null +++ b/include/mbgl/annotation/point_annotation.hpp @@ -0,0 +1,22 @@ +#ifndef MBGL_ANNOTATION_POINT_ANNOTATION +#define MBGL_ANNOTATION_POINT_ANNOTATION + +#include <mbgl/util/geo.hpp> + +#include <string> + +namespace mbgl { + +class PointAnnotation { +public: + inline PointAnnotation(const LatLng& position_, const std::string& icon_ = "") + : position(position_), icon(icon_) { + } + + const LatLng position; + const std::string icon; +}; + +} + +#endif |