-
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 doesdocument.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 whydocument.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.
-
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);
-
- BaseArrayClass.forEach()
(click for large image)
(click for large image) - BaseArrayClass.forEachAsync()
(click for large image)
(click for large image) - BaseArrayClass.map()
(click for large image)
(click for large image) - BaseArrayClass.mapAsync()
(click for large image)
(click for large image) - BaseArrayClass.filter()
(click for large image)
(click for large image) - BaseArrayClass.filterAsync()
(click for large image)
(click for large image)
- BaseArrayClass.forEach()
-
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.