I encounter error on IOS and Android with removing Markers:
- when camera is moving markers are not removed
- when add and remove the same marker (creating new) it will not remove it from the map afterwards.
Using packages:
{
"@ionic-native/core": "^5.32.0",
"@ionic-native/google-maps": "^5.5.0",
"cordova-plugin-googlemaps": "^2.7.1",
"cordova-plugin-googlemaps-sdk": "github:mapsplugin/cordova-plugin-googlemaps-sdk",
}
node --version
v14.16.0
ionic --version
6.13.1
cordova --version
10.0.0
- Setup you API keys for GoogleMaps - IOS/Android
- Build and Run application
- multiple click
- Click Circle button once to place new marker - wait until camera stops
- Click again Circle button to remove marker from the map (it should remove the marker)
- Click multiple times to add/remove marker (after few tries markers should not be removed from the map)
- when camera is moving
- Click Circle button once to place new marker
- While camera is still moving - click Circle button once again to remove it
When there are any animations on the map (like bounced marker, camera moving), and you remove marker from the map, then marker is not removed/eresed from the it at all. You can't click it, but is still rendered and visible. This problem also affect changing the location of existing marker - update position don't work.
Map should be always refreshed when Marker is removed (also when animation/camera is in palace)