Тёмный

React-Leaflet demo 

LogRocket
Подписаться 12 тыс.
Просмотров 54 тыс.
50% 1

Опубликовано:

 

20 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 43   
@timpies6592
@timpies6592 3 года назад
Dude! You won't believe how helpful this video has been. I have read half of Stack Overflow, trawled through the Leaflet docs with no luck. Your video has got me out of a deep rabbit hole. Thank you!
@alexlions8633
@alexlions8633 2 года назад
Jkkkk
@mennamagdy8030
@mennamagdy8030 2 года назад
Can't thank you enough! I have been struggling with google maps api and you saved me. Clear and straight to the point explanation!
@OneOneTwo3
@OneOneTwo3 4 года назад
Thank you so much for the video! I was having a lot of problems with the react-leaflet documentation.
@tadeocuchman9881
@tadeocuchman9881 2 года назад
Skate and Programming, best video EVERRR!!! haha thanks man!
@bipinmsit7380
@bipinmsit7380 4 года назад
Thanks a lot man! Thats the video i was looking for! A big thumbs up to you.
@davidhuelves
@davidhuelves 3 года назад
After trying following your tutorial and the leaflet-react web I can't get it to work. I receive always: You may need an appropriate loader to handle this file type. | style, | whenCreated, | ...options | }) { | const mapRef = useRef(null); Don't know why. Any Suggestions?
@derekhauffe7197
@derekhauffe7197 4 года назад
Thanks! I’ve been attempting to use the react-leaflet GeoJSON component without success. The GeoJSON file that I have works with the non-react leaflet’s GeoJSON, but not the react one. The react-leaflet GeoJSON expects a GeoJsonObject as the value for the data property, whereas the non-react GeoJSON component will accept data={stringOfJson}. Have you any idea how to get this to work properly?
@m.chakir3826
@m.chakir3826 2 года назад
After trying following your tutorial and the leaflet-react web I can't get it to work. I got this error: Compiled with problems:X ERROR in ./src/components/Emap.js 70:22-43 export 'features'.'map' (imported as 'parkData') was not found in './data/Skateboard_Parks.json' (possible exports: 0, 1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 2, 20, 21, 22, 23, 24, 25, 26, 27, 28, 3, 4, 5, 6, 7, 8, 9) Please help!
@Life_With_Nature_
@Life_With_Nature_ 2 года назад
how do we find previously marker using search bar in react leaflet
@owenng1268
@owenng1268 4 года назад
How do you collect the json files? I am trying to collect some data from google map but I could not.
@SogMosee
@SogMosee 4 года назад
How do we center the map only once, when the page first loads? I am receiving new lat / lon updates every minute and it always recenters to my original position.
@divashranabhat4629
@divashranabhat4629 3 года назад
If I have two items/names for a single co-ordinate on a map then how do I show it ? Basically what is happening in the data is, the data that comes last in the dataset is showing in the map, and the recent one is not showing.
@bobroberts5216
@bobroberts5216 4 года назад
As always, great video Leigh! One question is have you figured out how to handle larger datasets? Think of a bus app with a few hundred bus stops. Is there a way to load only what is in view or do you have another suggestion?
@nicholaskendall1506
@nicholaskendall1506 2 года назад
You need to render the markers to canvas and switch the circle markers.
@jacobokomo6077
@jacobokomo6077 Год назад
This was of great value. Really
@1etcetera1
@1etcetera1 3 года назад
Thanks, Man! That's so much helpful!
@sambapasupuleti4757
@sambapasupuleti4757 2 года назад
How to get tilelayer attributes link
@hoangdang4040
@hoangdang4040 2 года назад
Hi bro, How to do cross section in the map of react leaflet?
@SuperVladikk
@SuperVladikk 3 года назад
Any idea about react leaflet canvas v3?
@blusanders
@blusanders 3 года назад
This is really well done. Thank you! My onlick isn't working. Anyone have any thoughts? My points are rendering on the map. But the click doesn't do anything.
@blusanders
@blusanders 3 года назад
If I cut and paste your code exactly, the onClick doesn't work for me there either. Inititally I had to change Map to MapContainer to get the points to render. Is the onClick different in MapContainer vs Map?
@blusanders
@blusanders 3 года назад
Scratch that I just used inside the initial Marker tag.
@RadicalMycology
@RadicalMycology 3 года назад
@@blusanders I'm having the same problem. Can you explain what you mean by this solution? Did you move the Popup tag inside the Marker tag? If so, what happens to {activePark && ( that comes before the Popup tag?
@jacobchen7755
@jacobchen7755 3 года назад
​@@RadicalMycology I changed the marker code to: {park.properties.NAME} {park.properties.DESCRIPTIO} I skipped everything about the activePark and onclick stuff. The code like that allows you to click on the skateparks and the popup will show the park info.
@fanuelguill
@fanuelguill 4 года назад
Thanks for this tutorials Now please how can i make the Marker to move when i'm scrolling map and how can i get a name of a place automatically just with latitude and longitude ? Thanks
@RounakDwary
@RounakDwary Год назад
You are a lifeasaver man.
@SingTingz31
@SingTingz31 4 года назад
Thanks so much for this! Can you do a video on how to use react-leaflet marker cluster for points that overlap when zoomed out? edit: it was easier than I thought, just had to place all the markers in the tag which was imported from the npm package.
@khaingmyaekyawswar1179
@khaingmyaekyawswar1179 4 года назад
Love It.
@lynguist
@lynguist 3 года назад
Hey Leigh, first of all, thanks for your videos on all the differnt kinds of maps and their implmentations in react projects. I can not get it to work "the react way" as you put it. so my popup cannot have its own state. is this kind of implementation no longer valid or did it change somehow bc i unfortunately cannot figure it out. so if you or anybody who knows sth about that issue could/would help me out here that would be immensely appreciated!
@cience
@cience 3 года назад
if you dont want to do the "React way" then just put the info here inside the marker component and it will work on its own, and Popup component is imported from the react-leaflet library
@lynguist
@lynguist 3 года назад
@@cience yes i ened up doing it like that, but i would rather do it like leigh does to get separate state of the popup. if i do it like him, i dont get an error, its juist that the popup isnt showing up at all
@lynguist
@lynguist 3 года назад
solution for everybody interested: onClick is not longer supported and has to be exchanged for: eventHandlers={{click: () => {console.log('marker clicked')}, }}
@abessesmahi4888
@abessesmahi4888 4 года назад
Awesome 👍
@TheBielzinho555
@TheBielzinho555 4 года назад
What's the name of this VS Code theme?
@fanuelguill
@fanuelguill 4 года назад
Euuuuh Dark ?
@henokzelalem1964
@henokzelalem1964 4 года назад
thank you !!
@rroossyyiidd
@rroossyyiidd 3 года назад
Thanks a lot
@mohammadelayan9699
@mohammadelayan9699 4 года назад
you are awsome
@سبحانشرفی-ب5ع
@سبحانشرفی-ب5ع 4 года назад
Thanks :-)
@mohamadganji6427
@mohamadganji6427 2 года назад
great
@shimin_mathew
@shimin_mathew 4 года назад
🦕
@toxicfog6154
@toxicfog6154 Год назад
Thank you so much!
Далее
The Most Important Design Pattern in React
35:04
Просмотров 82 тыс.
Leaflet Map Routing JavaScript App
46:09
Просмотров 61 тыс.
Google Places - Autocomplete in React
16:05
Просмотров 55 тыс.
Master the React ecosystem in 2024
7:01
Просмотров 51 тыс.