ionic-team / ionic-native-google-maps

Google maps plugin for Ionic Native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exclude places from map

almaz1213 opened this issue · comments

commented
  • [x ] question

Current behavior:
I init map with camera option only. But it shows place markers.

Expected behavior:
I would like see my markers only.

How to exclude plase markers from the map?
I couldn't find the option in docs.

commented

option

styles: [
        {
          "featureType": "poi",
          "elementType": "all",
          "stylers": [
            { "visibility": "off" }
          ]
        }
      ]

doesn't remove them

Please try here

https://mapstyle.withgoogle.com/

This plugin just passes the parameters to the maps sdk

commented

but where can i include mapId then?

choose "old style wizard"

commented

do u mean retro style?

already. but enyway i need put the mapId according gmap js docs. in ur docs i cant see where can i set the mapId

This plugin doesn't support the cloud maps, and this plugin doesn't use Google Maps JavaScript v3 API on Android and iOS.

You need to generate JSON, and pass it to the maps plugin

commented

mate a option 'styles' doesnt affect as well.

this.map = GoogleMaps.create('map_canvas', {

      camera: {
        target: {
          lat: this.lat,
          lng: this.lon
        },
        zoom: 13,
        tilt: 30
      },
      controls: {
        compass: false,
        myLocationButton: true,
        myLocation: true,   // (blue dot)
        indoorPicker: true,
        zoom: false,          // android only
        mapToolbar: false     // android only
      },

      styles: [
        {
          "featureType": "poi",
          "elementType": "all",
          "stylers": [
            { "visibility": "off" }
          ]
        }
      ],...

Please try many options. As I said, this plugin just passes the parameters to the Google Maps SDK. You need to figure out which options are good.

commented

))) do u mean do that brutely?

If you use Google Maps SDK directly, you will face this problem. Because this is the problem of inside the Google Maps SDK, not this plugin.

And this is not a help forum. The issue tracker for the maps plugin.

You can specify different rules. Try and try please

commented

got it. thanx mate