error = maps_view_object_marker_get_size(object, &markerWidth, &markerHeight);
if (error != MAPS_ERROR_NONE) { break; }
+ if (markerWidth == 0 || markerHeight == 0) {
+ markerWidth = imgWidth;
+ markerHeight = imgHeight;
+ }
+
float scaledWidth = scaleFactor * markerWidth;
float scaledHeight = scaleFactor * markerHeight;
styleString.resize(sz+1);
std::snprintf(&styleString[0], styleString.size(), styleFormat, scaledWidth, scaledHeight, anchor.c_str());
+ MAPS_LOGD("Marker Style String: %s", styleString.c_str());
m_map->markerSetStyling(tvMarker, styleString.c_str());
error = maps_view_object_marker_get_coordinates(object, &mapsCoord);
styleString.resize(sz+1);
std::snprintf(&styleString[0], styleString.size(), styleFormat, r, g, b, a, width);
+ MAPS_LOGD("Polyline Style String: %s", styleString.c_str());
+
m_map->markerSetStyling(tvMarker, styleString.c_str());
error = maps_view_object_polyline_foreach_point(object, emplaceCoord, &coords);
styleString.resize(sz+1);
std::snprintf(&styleString[0], styleString.size(), styleFormat, r, g, b, a);
+ MAPS_LOGD("Polygon Style String: %s", styleString.c_str());
+
m_map->markerSetStyling(tvMarker, styleString.c_str());
error = maps_view_object_polygon_foreach_point(object, emplaceCoord, &coords);