Skip to main content

All Questions

Tagged with
0 votes
1 answer
455 views

How do I remove the “Cancel” option from the Draw button on the Leaflet.draw plugin?

As seen in the image below, I’d like to remove the option to cancel a drawing. Here’s my code:
Budding_Programmer's user avatar
1 vote
1 answer
444 views

disable Ionic 2 touch events system for leaflet map (draw controller)

Can anyone please show me how to disable data-tap on ionic 2, in leaflet map div? On Ionic-v1, the trick was to input data-tap-disabled="true" in the div map container (ion-content). I installed ...
Ben Ayoub's user avatar
0 votes
1 answer
205 views

Why call back function is not working on marker setting in leaflet library Android?

In my app, I am using leaflet library to render map and drawing shapes. I am using below code to set marker on the map. Markers are setting properly bu clicking on those marker icon is not working. I ...
Abdul Waheed's user avatar
  • 4,658
0 votes
1 answer
375 views

How can I get a drawn Object from a map leaflet draw using angular?

I am using angular leaflet, leaflet-draw and I am trying to get a circle (or other drawn object) object to see if a point on the map appears within it overtime. I need to use it in a separate service....
jsNoob's user avatar
  • 149
1 vote
1 answer
917 views

Unable to draw in Leaflet after update of a marker position using geolocation

I'm using Leaflet, Leaflet-draw and Cordova Geolocation. When the map is loaded (globe view) it is possible to draw correctly, when locate function is called mapcenter and marker position are update ...
gio's user avatar
  • 871
1 vote
1 answer
2k views

How to show Google maps and leaflet draw polygons in a same layer?

I am able to display marker & geojson polygons using leaflet and google maps.but map and polygons are coming in different layers this is not looking good when you zoom in,zoom out or while ...
trex tiab's user avatar
0 votes
0 answers
1k views

How can I use Google maps with Leaflet? [duplicate]

Here is the code I am using with osm. I was able to display marker but I was not able to display and edit geojson polygons. I have google api keys with me. Is it possible to do it with google maps? ...
Anuj Mayank's user avatar
0 votes
1 answer
351 views

Why I get this error with angular and leaflet

I set in separated files different components, but when I aggregate a search input, I get this error in local: angular.js:13424 Error: Map container not found. and in plunker: angular.js:13424Error:...
pokaxperia's user avatar