All Questions
10
questions
0
votes
1
answer
1k
views
How to add multiple icon for same position in React-leaflet version 3
I'm developing an app using React-leaflet version 3 with TypeScript. In my app, I have the requirement to add multiple icons for one position. EX: A particular [lat,long] position identified as ...
0
votes
0
answers
1k
views
Creating custom layer using React leaflet V3
I want to create a custom helper div layer on the map on a button click or mouse-over over the button. The button is also a custom control button on the map. Here is the example control button
My ...
3
votes
1
answer
8k
views
Custom button on the leaflet map with React-leaflet version3
I'm a new leaflet learner with React typescript. Want to create a custom button on the map. On clicking the button a popup will appear. I saw many example but they are all based on older version and I ...
-1
votes
1
answer
64
views
launch navigator with a FAB
hello to those who see this, I'm a beginner in typescript development so i try my best I'm trying to launched a navigator (like waze, gmap or other...) with a FAB. this is my code in TS:
ngOnInit() {
...
0
votes
1
answer
665
views
Add marker on Leaflet map from another angular component
I have declared, in my Angular application, a const map variable in my mapComponent and I am able to add custom marker on map in the same component; how can I do the same thing from other Angular ...
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 ...
1
vote
1
answer
3k
views
Runtime Error: error TS2307: Cannot find module 'leaflet'
I have problem with leaflet dictionary. I saw similar problems on stackoverflow, but it has not been resolved. I reinstalled leaflet and types, but there is still a problem. When I import L from ...
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 ...
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 ...
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 ...