google-maps icon indicating copy to clipboard operation
google-maps copied to clipboard

StaticMapRequest: how to add "style"?

Open gikotim opened this issue 4 years ago • 0 comments

I want to add the result of Google Styling Wizard (json) to a StaticMapRequest. StaticMapRequest request = new StaticMapRequest(Markers, new ImageSize((int)ps.GetWidth(), (int)ps.GetHeight())) { MapType = MapType.Hybrid, ApiKey = "xxx", Style = ?????

Output from Styling Wizard (json): [ { "elementType": "geometry", "stylers": [ { "color": "#f5f5f5" } ] }, { "elementType": "labels.icon", "stylers": [ { "visibility": "off" } ] },

gikotim avatar Mar 20 '20 08:03 gikotim