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.

Problem with addMarker()

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”) [ x] 2.0-beta3 (github) [ ] 2.0 (npm)

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

cordova information: (run $> cordova plugin list)

cordova-plugin-googlemaps 2.0.6-beta-20170906-2336 "cordova-plugin-googlemaps"

If you use @ionic-native/google-maps, please show me the package.json@ionic-native/google-maps”: “^4.2.1”

placeMarker(LatLng) {
    if (this.marker) {
      this.marker.setPosition(LatLng);
    } else {
      this.map.addMarker({
        position: LatLng,
        draggable: true,
        icon: 'green',
        animation: 'DROP'
      }).then(marker => this.marker = marker);
    }
  }
      this.map.on(GoogleMapsEvent.MAP_CLICK)
          .subscribe((LatLng) => {
            this.placeMarker(LatLng);
          });

nothing happens, with no error on the console.

same problem, when i called an addMarker after this.map.animateCamera({ ... }).then( () => this.map.addMarker( .... ) )}

all of this is under this.map.one(GoogleMapsEvent.MAP_READY) , i dont know through what’s causing the problem

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
wf9a5m75commented, Sep 13, 2017

Thank you for sharing the project. That saved a lot of my work time. I finally figured out the problem and fix it. Please reinstall the plugin from the multiple_maps branch

cordova pluign add https://github.com/mapsplugin/cordova-plugin-googlemaps#multiple_maps ...

issue_1730_after

0reactions
Madm0xcommented, Sep 13, 2017

I’m glad to help, this will help me back in my project as well. When i got the time, i will try to work more on the ionic demo 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Maps Android SDK - addMarker() seems not work on ...
I've read online that somethimes request position permission resolve the problem, but i'll prefer not use this. @Override public void onMapReady ...
Read more >
mashup - problems with markers on addmarkers pset8 - CS50 Stack ...
I'm currently working on pset8 and I'm having a problem with addMarkers(). So, I can get my markers to show on my map,...
Read more >
Issue with AddMarker - Google Groups
Hey. I'm stuck with the same issue. ``` angular-v1.5.3.min.js:116 TypeError: r.range.clipRows is not a ...
Read more >
Adding a Map with a Marker | Maps SDK for Android
This tutorial shows you how to add a Google map to your Android app. The map includes a marker, also called a pin,...
Read more >
Trouble using addMarkers from pRoloc on my own dataset
You need to tell addMarkers how to match the proteins in the MSnSet and in the marker vector. > ## named marker vector...
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