There are two static methods:
- containsLocation Return true if the position is in a polygon path
- isLocationOnEdge Return true if the position is on the line path
containsLocation (Doc) | |
isLocationOnEdge (Doc) |
v2.0.11 (before)
anchorDiv.style.left = x + "px";
anchorDiv.style.top = y + "px";
v2.1.0 (now)
anchorDiv.style.setProperty("-webkit-transform", "translate3d(" + x + "px, " + y + "px, 0)");
anchorDiv.style.setProperty("transform", "translate3d(" + x + "px, " + y + "px, 0)");
The External Service is no longer available. Please use Launch Navigator Cordova/Phonegap Plugin.
@ionic-native/google-maps 4.3.3 (more details)
The wrapper plugin waits the page view is fully loaded if you specify the map div ID.
This helps you leave from setTimeout
Before (v2.0.11)
ionViewLoaded() {
setTimeout(this.loadMap.bind(this), 1000);
}
loadMap() {
var mapDiv = document.getElementById('map_canvas');
this.map = this.googleMaps.create(mapDiv);
}
Now (v2.1.0)
ionViewLoaded() {
this.loadMap();
}
loadMap() {
this.map = this.googleMaps.create('map_canvas');
}
- (JS) Bug fix: Error in console on HtmlInfoWindow setBackgroundColor #1850
- Bug fix: HTMLInfoWindow position is incorrect on some devices Add: the cssOptions to HTMLInfoWindow.setContent() Update: use transition CSS for positioning of HTMLInfoWindow
- (JS) Bug fix: remain HTMLInfoWindow after map.remove() mapsplugin/cordova-plugin-googlemaps#1823 (comment)
- (JS) Bug fix: can not click upon the overlay menu on the map
- (JS) Add: plugin.google.maps.geometry.poly name space #1441
-
(JS) update: Prevent executing the remove method after the instance is removed
-
(Android) Bug fix: Bug fix: Handled cases where we have only one line address. #1839
- (Android) Bug fix: groundOverlay.setImage() doesn't work properly on Android #1834
-
(iOS) Bug fix: can not load image file if application name contains the space characters
-
(JS) Bug fix: variable
self
is undefined in the remove method #1804
- (JS) update: Change the backbutton event handling. The callback function must handle everything by itself
- (JS) Bug fix: The infoWindowAnchor option does not work for HtmlnfoWindow #1801
-
(js) Use
self
instead ofthis
as much as possible (except short code) #1804 -
(js) Bug fix: $ionicPlatform.registerBackButtonAction not pass event when install latest version of plugin #1808
-
(iOS) Bug fix: MarkerCluster (and other methods) stops when map.clear() executes multiple times #1785
-
(Android) Bug fix: Prevent null pointer crash #1797
-
(js) Bug fix: the remove() method of the marker generated by marker cluster does not work
-
(Android/iOS) The external service is removed.
- (iOS) Bug fix: overlays click not working in iOS #1794
- (iOS) Bug fix: overlays click not working in iOS #1794
- (iOS) Bug fix: OS Map Clustering #1785
- (android) Bug fix: addTileOverlay getTile function not always working as expected. #1743
- (js/iOS) map.setDiv(...) does not work well on iOS simulator #1768
- (js) Bug fix: HTMLInfoWindow does not close using the marker.hideInfoWindow() method.