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 while cleaning markers on ionic wrapper

See original GitHub issue

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

The plugin version: (check one with “x”) [ ] 2.0-beta3 (github) [x] 2.0 (npm)

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

cordova information: (run this.map.clear();)

main.js:1122 TypeError: Cannot read property 'apply' of undefined
    at Marker.trigger (BaseClass.js:62)
    at Marker.remove (Marker.js:112)
    at clearObj (Map.js:268)
    at Map.clear (Map.js:277)
    at vendor.js:52912
    at new t (polyfills.js:3)
    at GoogleMap.clear (vendor.js:52911)
    at GoogleMap.value [as clear] (vendor.js:128009)
    at MapsPage.<anonymous> (main.js:1111)
    at step (main.js:1022)

If you use @ionic-native/google-maps, please show me the package.json

"@ionic-native/google-maps": "^4.3.2",
<plugin name="cordova-plugin-googlemaps" spec="^2.0.11">

Current behavior:

Expected behavior:

Steps to reproduce:

Screen capture or video record:

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

insert any relevant code, data, or error log here

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jalescardosocommented, Nov 2, 2017

Thanks @wf9a5m75 ! everything working here.

0reactions
wf9a5m75commented, Nov 2, 2017
$> cordova plugin rm cordova-plugin-googlemaps

$> npm uninstall @ionic-native/core @ionic-native/google-maps

$> cordova plugin add  cordova-plugin-googlemaps@2.1.1 --variable API_KEY... --no-fetch

$> npm install @ionic-native/core@4.3.3 @ionic-native/google-maps@4.3.3

Read more comments on GitHub >

github_iconTop Results From Across the Web

Geolocation error for ionic app is work on browser but not ...
i am developing a map based project in which app tries for geolocation of user, if GPS not enable it shows an error...
Read more >
Removing Markers | Maps JavaScript API - Google Developers
This example creates a map where each click by the user creates a marker. Click the buttons to hide or delete all of...
Read more >
Component cannot be used as a JSX component in React
The error Component cannot be used as a JSX component occurs for multiple reasons, returning an array of JSX elements instead of a...
Read more >
Ionic Forum - Latest posts - RSSing.com
I am working with an API that is used to sync bigger amounts of data (JSON arrays mostly, later maybe also images) to...
Read more >
Compact Ionic Air Purifier, 250 sq ft Room Capacity, Black - Air ...
Offers two settings—High and Low. Compact air purifier rids the air of harmful allergens, irritants and particles, while silently circulating purified air back ......
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