unable to setmapstyle for googlemaps in flutter

294 views
Skip to first unread message

Error Place

unread,
Jul 20, 2020, 5:18:23 AM7/20/20
to Flutter Development (flutter-dev)
i have been trying to style my google map and it just will not work. can someone see whats wrong with it?



 GoogleMap(
            markers
: Set<Marker>.of(_markers.values),
            myLocationEnabled
: true,
            onMapCreated
: (GoogleMapController controller) {
              mapController  
= controller;
              mapController
.setMapStyle('[{"featureType": "poi","stylers": [{"visibility": "off"}]}]');
           
},
            mapType
: MapType.terrain,
            myLocationButtonEnabled
: true,
            initialCameraPosition
: _initialCamera,
              gestureRecognizers
: <Factory<OneSequenceGestureRecognizer>>[
               
new Factory<OneSequenceGestureRecognizer>(() => new EagerGestureRecognizer(),),
             
].toSet()
         
)


Suzuki Tomohiro

unread,
Jul 20, 2020, 8:23:35 AM7/20/20
to Error Place, Flutter Development (flutter-dev)
What is the problem you observe?

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/a10e22bb-e764-4d6c-b97e-d9bd4fee1427o%40googlegroups.com.

Suzuki Tomohiro

unread,
Jul 20, 2020, 8:33:06 AM7/20/20
to Error Place, Flutter Development (flutter-dev)
Why did you start debugging this?

On Mon, Jul 20, 2020 at 08:25 Error Place <reza7....@gmail.com> wrote:
Hi Suzuki . I can’t find it . Been going through it with debugger 100 times. 
I guess I am missing something quite simple
Thank you for responding 

Suzuki Tomohiro

unread,
Jul 20, 2020, 8:53:00 AM7/20/20
to Error Place, Flutter Development (flutter-dev)
I’m afraid that I didn’t get the problem you are facing. Hope somebody else can respond.

On Mon, Jul 20, 2020 at 08:36 Error Place <reza7....@gmail.com> wrote:
I don’t know😅 because nothing happened and I assumed something should be wrong.

Error Place

unread,
Jul 21, 2020, 6:17:42 AM7/21/20
to Suzuki Tomohiro, Flutter Development (flutter-dev)
Ok, thanks. For some reason it works on Android emulator but not iOS. I am able to print the style but nothing changes on the map.
Reply all
Reply to author
Forward
0 new messages