Problem with addMarker()
See original GitHub issueI’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:
- Created 6 years ago
- Comments:12 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
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 😃