All Questions
25
questions
0
votes
0
answers
176
views
How to find multiple markers?
I am trying to find a way to use multiple markers on an OSM map. In spite of a frightening number of tutorials, I am unable find a solution to recover the info (longitude, latitude of locations) in ...
0
votes
1
answer
1k
views
Changing the Center of a leaflet open street map
I'm initializing a map using leaflet(openstreetmaps) in angular and setting a center that the user sees when opening the site. How can i change the center so the map rotates to the new coordinates on ...
2
votes
1
answer
4k
views
How do I reset the view of my map back to my location in Ionic with Leaflet and OpenStreetMap?
Right now I'm working on a locationbased App in Ionic v4. Now I want to be able to reset the map view back to my location. I guess I need to use setView again to achieve this, but I don't know the ...
0
votes
1
answer
3k
views
Add leaflet ImageOverlay to Layers Control
I use leaflet with the Angular package ngx-leaflet and just trying to get my layer for ImageOverlays in my LayersControl, so I can show or hide this layer in the map based on a checkbox. Somehow it ...
0
votes
1
answer
2k
views
How to add pulse animation in asymmetric on marker
I`ve problem with adding animation on marker in leaflet lib
I use
new L.Icon({ iconUrl: 'https://cdn.rawgit.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-green.png',
shadowUrl: '...
1
vote
1
answer
1k
views
Access Leaflet map in different component in Angular
I have a component, OpenStreetMapComponent, which views my whole map. In the same component I also have a number of buttons (zoom, current location...). Having all of that in one component soon makes ...
1
vote
1
answer
1k
views
set current Location marker
I worked through this tutorial and got it all up and running. Now I want to get my current browser Location and set a marker for it onMapReady. I am pretty new to programming and I'm just starting to ...
2
votes
1
answer
1k
views
Leaflet map double marker issue
I am building an ionic3 app and using leaflet for the map functions. However i encountered a strange behavior. After page load the location is automaticly fetched if GPS is turned on. After this for a ...
2
votes
2
answers
900
views
Preformance of leaflet with angular2
I'm trying to load lot's of marker on a leaflet map
With this method :
L.marker([item.latitude, item.longitude]).addTo(this.map);
I loop for at least 100 markers and the map become really laggy ...
1
vote
0
answers
602
views
Adding leaflet markers dynamically from an MeteorObservable in Ionic2
I am in an Ionic2 / Angular2 typescript project. I want[1] to use leaflet and it's working quite fine, I can do all the basic operations like adding/editing markers and so on.
But as a next step I ...