Using Third-Party JS Libraries with React (Mapbox-GL-JS Map Markers)

preview_player
Показать описание
In this video, I show a couple of examples of using a third-party Javascript library with React. This can be tricky when dealing with libraries that modify the DOM as things can conflict with React.

Check out the "marker" examples in this repository for the full code and an additional example not shown:

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

You rock! I don't know how Google/Youtube finally ended up serving the content, but hey engagement signals rock, and being "complete" in this business rocks!

ProgrammingNewbie
Автор

Clear message, clear structure, easy to understand, thank you

grzegorzkowalski
Автор

hello, i've tried to make the map using react class and it worked but i can't show up the markers does anyone know why?
i use my own api for the longitude and langitude of the marker.

=>
new,
)};

can anyone help me?

hezkiel
Автор

I was trying to use the map.current "on" function about 10 hours ago.

The model passed in the documentation just doesn't work.

Creating it this way, with the map object being a constant, and passing the events within the same useEffect, it worked perfectly.

marcelosmbrr
Автор

Amazing video with great explanation! Thank you for sharing :)

hyunsukim
Автор

Rah I'm rendering a map as well, but when I have tried to put markers on the map I'm getting a message in the console "ReactDOM.render is no longer supported in React 18" - any suggestions?

wojcik
Автор

Great video ! Got me out of a rabbit whole !!

the_code_rat
Автор

Awesome.. Hello Rah, May you make a video about "How to add WMS layer using react-map-gl", for example from Geoserver..

saharilarshad
Автор

You try to give the video more brightness it will be great if you do

orsolyaszabo
Автор

u have amazing accent bro + nice content
iam interesting about this kind of apps and what i want to build is some app users can raise a marker to let other know their places

i don't think i explained it good but you got me ? i want to know how to build it and thank you

osamaibrahim
Автор

nice, but from where do you have this "chicago-parks.json"?

vladus