Skip to content

Tag: leaflet

How I can send data from Flask to JavaScript?

Hello I am new and building an application in Flask and Javascript. I have a problem with sending data from Flask do JavaScript. I have code in routes.py I want to send jsonify(slownik) to my code in JavaScript but I dont want to do it with render_template bacause it refresh a page and I need this data to dis…

Leaflet createTile await for image to load

I am using the createTile with Vue2Leaflet library to make custom tiles. As far as I saw in the documentation, the function runs as many times as there are coords on the map. In my case, the function is triggered way more times than I have images to return so at the end I get 90%+ empty tiles that just

React leaflet map center not changing

I’m setting up a map to find the coords of a person and then put that location on the map. But for some reason, the coords aren’t being shown on the map. I console.log to make sure the state variables(where the coords are being stored) were emitting the right coords and they are. I don’t kno…