Skip to content

Latest commit

 

History

History
93 lines (74 loc) · 3.33 KB

File metadata and controls

93 lines (74 loc) · 3.33 KB

Release notes for @ionic-native version 4.3.3

  • Update: Specifying element Id for map.create()

    When you create a map, your code might be like this:

    let div = document.getElementById('map_canvas');
    
    this.map = this.googleMaps.create(div);
    

    How about if you define <div id="map_canvas"></div> in pageA and pageB, which div element does document.getElementById('map_canvas') return, pageA or pageB?

    Actually pageA instead of pageB in some case. Since the Ionic framework uses fade-in/fade-out, even ionViewLoaded() is occurred, the pageA is still remained. That's why document.getElementById('map_canvas') returns the div element of pageA.

    If you specify the element Id of map div, the plugin waits until the pageB is ready.

    this.map = this.googleMaps.create('map_canvas');
    

    I recommend this way for ionic users.

  • Add: the cssOptions argument for HtmlInfoWindow.setContent() method

    You can specify additional CSS styles for HtmlInfoWindow.

    let htmlInfoWindow = new HtmlInfoWindow();
    
    htmlInfoWindow.setContent("<h3>HelloWorld</h3>", {
      width: "280px",
      height: "330px",
      color: "red"
    });
    
    htmlInfoWindow.open(marker);
  • Add: forEachAsync(), mapAsync(), and filterAsync() methods into BaseArray class.

  • Bug fix: Polyline.getPoints(), Polygon.getPoints() and Polygon.getHoles() do not return the instance of BaseArray class.

  • Bug fix: Error when removing map #1823

  • Bug fix: missing clickable option for PolygonOptions and PolylineOptions.