Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Creating a native google map always renders as map type NORMAL

$
0
0

@aswk wrote:

Hi,

I am using the cool native Google maps plugin in a new app on ios. When I create the map with mapType set in options to HYBRID, the map is created as a map of type NORMAL. It is redrawn as a hybrid map when I use map.setMapType() just after the create().

Options:
I tried with different case and attribute names:

  options: GoogleMapOptions = {

    mapType: GoogleMapsMapTypeId.HYBRID,
    maptype: GoogleMapsMapTypeId.HYBRID,
    maptypeid: GoogleMapsMapTypeId.HYBRID,
    mapTypeId: GoogleMapsMapTypeId.HYBRID,
    mapTypeID: GoogleMapsMapTypeId.HYBRID,
  ...

and

this.map = GoogleMaps.create('map_canvas', this.options);
// this.map.setMapTypeId(this.options.mapType); // works but the map is rendered twice

Any ideas to solve this?

Andreas

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>