Search code examples
google-mapsionic-frameworkcordova-plugins

Can't remove markers - Ionic cordova google maps plugin


enter image description here

I'm pushing markers to this array 'temp1' shown in the console, but I cant use .remove() function. I tested .getPosition() and .getId() functions and they worked.

Same problem with map.clear();


Solution

  • I've raised an issue in ionic-native-google-maps github repository and they solved it.

    https://github.com/ionic-team/ionic-native-google-maps/issues/3

    The problem was one conditional in version 4.6.1, now the correct version is 4.6.3