};
struct SceneUpdate {
- std::string keys;
+ std::string path;
std::string value;
};
};
class Map {
+
public:
// Create an empty map object. To display a map, call either loadScene() or loadSceneAsync().
// updated, otherwise returns false.
bool markerSetStyling(MarkerID _marker, const char* _styling);
+ // Set a bitmap to use as the image for a point marker; _data is a buffer of RGBA pixel data with
+ // length of _width * _height; pixels are in row-major order beginning from the bottom-left of the
+ // image; returns true if the marker ID was found and successfully updated, otherwise returns false.
bool markerSetBitmap(MarkerID _marker, int _width, int _height, const unsigned int* _data);
// Set the geometry of a marker to a point at the given coordinates; markers can have their
// updated, otherwise returns false.
bool markerSetVisible(MarkerID _marker, bool _visible);
+ // Set the ordering of point marker object relative to other markers; higher values are drawn 'above';
+ // returns true if the marker ID was found and successfully updated, otherwise returns false.
+ bool markerSetDrawOrder(MarkerID _marker, int _drawOrder);
+
// Remove all marker objects from the map; Any marker IDs previously returned from 'markerAdd'
// are invalidated after this.
void markerRemoveAll();
class Impl;
std::unique_ptr<Impl> impl;
+
};
enum DebugFlags {
maps_coordinates_destroy(mapsCoord);
m_map->markerSetPoint(tvMarker, Tangram::LngLat(lng, lat));
+
+ int drawOrder = 0;
+ error = maps_view_object_marker_get_z_order(object, &drawOrder);
+ if (error != MAPS_ERROR_NONE) { break; }
+ m_map->markerSetDrawOrder(tvMarker, drawOrder);
+
} while (0);
return (mapzen_error_e)convert_maps_error_to_mapzen_error(error);