Create interactive web maps using Leaflet JS - 02 - Creating a Simple Map

preview_player
Показать описание
There is a possible issue with Google Chrome. For compatibility it is better to rename file extension from .geojson to .js.

Please subscribe.
Рекомендации по теме
Комментарии
Автор

I can see the map now the problem was the fact of having badly written "height". I advise others (failing what others have already had to propose as a solution) to inspect their code from the browser and then from the console look what's wrong and 'boooom' I think they will spared from these problems. Thank you for this wonderful tutorial

artizawedding
Автор

Thumbs up for the tutorial series :) also, .geojson worked with google chrome for me as well as it did with firefox

hzubaca
Автор

It works fine but it takes too long to load the page when i move . Is it because my geojson data is 250 mb?

sirick
Автор

Hello, is it possible to assign the GeoJSON content to variable in some different way? In 00:14 you are doing it directly in the geojson file, but that makes the file unusable in QGIS, i have to remove the whole "var = countries " to make it editable/usable in QGIS for any further calculations

jakubfuska
Автор

It's quite curious. Map couldn't been seen in my browser until I changed the extension of .geojson file to just .js
Do anyone knows why? Very usefull tutorial btw!!

AntonioHernandez-sigk
Автор

Thank you very much for sharing, could you tell me where I can go the files because the links are already broken

juanjava
Автор

I have followed all the procedures but my map is not coming up.... I have no idea why.

sueshili
Автор

ciao, sto seguendo i tutoria è sono interessantissimi. ti chiedo una sola cortesia, verso la fine dei video potresti inserire il link al video successivo? grazie

alessandrozorzet
Автор

it is geoJson not geojson
he fixed real quick, ones could miss that, I did

rephechaun
Автор

Map not showing FIXED. my map also wasn't showing i just changed "<style type="text/css>" to "<style>" and map displayed

TheSeans
Автор

I've completed all the steps but the map won't show... any ideas. Im using firefox as the browser. I've changed the Geojson file to js. and nothing is working. Any help is greatly appreciated.

zachg
Автор

hey all who've wandered out here and can't get the map to appear. I tried this and it worked:
var map = L.map('map').setView([40.7829, 73.9654], 13);

TheArkaRay
Автор

the map doesn't come up, it never comes up. i've tried writing the entire path, ive tried following the video, i checked environment variables, tried both browsers...I'm in a coding class for gods sake so I know this stuff should work on my computer and I know how to look for tiny mistakes in code. It doesn't work and nobody has any helpful advice. "just send me your code" meanwhile lots of people are running into the issue...."write source path out completely" the equivalent of "have you tried restarting the modem"

kng_knny
Автор

Very useful and good video!
But unfortunatly my map still doesn't show. I think I did something wrong because the colors are different in Geany. Can anybody help?

theRealRedClifford
Автор

it's very nice and useful !!
But unfortunately my map still doesn't show. I think I did something wrong because in browser only showing box, not any map. Can anybody help?

seemabarate
Автор

Hello;
How to add a scale bar to the web map!

didimohamedsalem
visit shbcf.ru