question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error clearing the map after of create markercluster

See original GitHub issue

I’m submitting a … (check one with “x”) [ ] question [* ] any problem or bug report [ ] feature request

If you choose ‘problem or bug report’, please select OS: (check one with “x”) [ ] Android [ *] iOS

cordova information: (run $> cordova plugin list)

com.googlemaps.ios 2.5.0 "Google Maps SDK for iOS"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-appminimize 1.0 "AppMinimize"
cordova-plugin-device 1.1.7 "Device"
cordova-plugin-dialogs 1.3.4 "Notification"
cordova-plugin-google-analytics 1.8.3 "Google Universal Analytics Plugin"
cordova-plugin-googlemaps 2.1.1 "cordova-plugin-googlemaps"
cordova-plugin-ionic-webview 1.1.16 "cordova-plugin-ionic-webview"
cordova-plugin-native-spinner 1.1.3 "Native Spinner"
cordova-plugin-network-information 1.3.4 "Network Information"
cordova-plugin-overview 0.1.2 "Overview"
cordova-plugin-splashscreen 4.1.0 "Splashscreen"
cordova-plugin-statusbar 2.3.0 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-plugin-x-toast 2.6.0 "Toast"
cordova-sqlite-storage 2.1.2 "Cordova sqlite storage plugin"
ionic-plugin-keyboard 2.2.1 "Keyboard"
onesignal-cordova-plugin 2.2.2 "OneSignal Push Notifications"

If you use @ionic-native/google-maps, please tell the package.json (only @ionic-native/core and @ionic-native/google-maps are fine mostly) "@ionic-native/core": "4.3.2", "@ionic-native/google-maps": "^4.4.2",

Current behavior:

i have the map and an markercluster added, and when i call the “this.map.clear()” method in order to create othe marker cluster with different locations, this give me an error, “cannot read property apply of undefined”

Expected behavior:

call the method “this.map.clear()” an then create a new markercluster

Screen capture or video record:

eqwe Related code, data or error log (please format your code or data):

The person who share your project files on Github (or other git repository) is in faster lane than other people.
Please share your project files on Github or others(Bitbucket, Gitlabs...etc).
If you don't want to share your project files, please create a demo project, then share it.

Screen captures, and/or native logs(such as Logcat, xcode logs) are appreciate.

Giving much information, you are waiting time is less.
Thank you for your cooperation.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
jakeclarklucentmobilecommented, Mar 22, 2018

bump

After messing with it for a couple days I managed to completely mess up my project to where google maps would never load. Version numbers got conflicted and I spent a whole day reverting things back to what the ionic docs tell you to do, and managed to get maps loading again, but I still cant remove markers. I can place markers and clusters, I can move and animate the map, everything else I wanna do works, I just cant run a map.clear() or a marker/cluster.remove()

Can anyone tell me when this will be pushed to master? Or help me with my problems getting the other branch working? - With the other branch installed the only results I’ve gotten are build errors, the map being created but ready never being fired, or a working map with the inability to remove markers (same error as master branch)

Would appreciate some help, thanks.

2reactions
smark91commented, Dec 11, 2017

When will be released this bugfix?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Marker cluster clearLayers method does not remove the layers ...
I'm using "leaflet.markercluster": "^1.5.0" into an Angular app. The marker cluster is created as follow:
Read more >
Unable to remove marker cluster group completely from the ...
When I type the following in the browser console, no layer is found, but I can see the points. >> map.hasLayer(LAYERS.foo) ← false....
Read more >
Events | Maps JavaScript API - Google Developers
The following code mixes user events with state change events. We attach an event handler to a marker that zooms the map when...
Read more >
I get error in MarkerClusterer.js - Google Groups
to Google Maps JavaScript API v3. I get the following error in the MarkerClusterer.js routine. Uncaught TypeError: Object [object DOMWindow] has no method...
Read more >
Documentation | WP Go Maps
Advanced Options for Individual Maps ... Error Code: InvalidKeyOrUnauthorizedURLMapError”; My map is not showing on ... How can I create a Google Maps...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found