Bug 51765 - setMapStyle is not available in Xamarin.Android for GoogleMap
Summary: setMapStyle is not available in Xamarin.Android for GoogleMap
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: Bindings ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Atsushi Eno
URL:
Depends on:
Blocks:
 
Reported: 2017-01-25 14:18 UTC by n.v.biryukov
Modified: 2017-06-26 16:53 UTC (History)
3 users (show)

Tags: bb
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description n.v.biryukov 2017-01-25 14:18:35 UTC
setMapStyle is not available in Android.Gms.Maps.GoogleMap in packages\Xamarin.GooglePlayServices.Maps.29.0.0.1\lib\MonoAndroid41\Xamarin.GooglePlayServices.Maps.dll

I would like to change a map to my own style with a json string raw resource through custom renderer.
json string can be attained through https://mapstyle.withgoogle.com/

Sadly, there is no such method as setMapStyle for GoogleMap in Android.
Please add it.
Google maps android API has it since sep.2016. Xamarin.IOS seems having it also. But there is no such a method for android.

ref https://forums.xamarin.com/discussion/78880/google-map-styling
ref https://forums.xamarin.com/discussion/52526/how-to-change-googlemap-style
ref https://code.google.com/p/gmaps-api-issues/issues/detail?id=5463
Comment 1 Tom Opgenorth 2017-06-26 16:53:26 UTC
Just checked our latest bindings( https://www.nuget.org/packages/Xamarin.GooglePlayServices.Maps/42.1021.1) for Xamarin.PlaySevices.Maps, and `GoogleMap.SetMapStyle` method is bound.