How to integrate open street maps in react using leaflet and maptiler | React Leaflet | Part 1

preview_player
Показать описание
This video explains how to integrate open street map (OSM) using leaflet in reactjs.

For this demo, I'm going to use maptiler as my OSM provider.

Demo + Source :

OSM Provider:

Subscribe to the channel for more videos.
Рекомендации по теме
Комментарии
Автор

what is the difference between 'Map' and 'MapContainer' components in react-leaflet...?

amatir-tutor
Автор

it didnt work with me it says there is Attempted import error: 'Map' is not exported from 'react-leaflet'. i tired MapContainer


Module parse failed: Unexpected token (10:41)
File was processed with these loaders:
*
You may need an additional loader to handle the result of these loaders.
| useEffect(function updatePathOptions() {
| if (props.pathOptions !== optionsRef.current) {
> const options = props.pathOptions ?? {};
|
| optionsRef.current = options;

ammnvx
Автор

Great video, just what I've been looking for !

remrkabledev
Автор

I'm getting Uncaught TypeError cannot read properties of null(reading usestate)

durgabharathi
Автор

news : Map is remlaced by MapContainer

mehdioukach
Автор

I was unable to import leaflet css that means if I import leaflet css the map does not shown...how can i solve it??

sakthiganesh.c
Автор

map is not showing properly react. do you have any solution?

rkboy
Автор

Hey thanks for sharing the info keep moving

mdfaiyazulhussain
Автор

how can i integrate maptiler geoencoding in it????

KunalJaiswal-ognf
Автор

Hi, how to do the same thing in react -native app ?

MohammadAyan-jzbi
Автор

From where u get the attribution value

ahalyajadda
Автор

how can we add the point to our location (I mean: showing our location with a pin for example) ?

halouadev
Автор

hi, thanks for the video, that was great, but in my case it gives me the "window is not defined" error... what should I do?

amirhaghdoost
Автор

Hello how are you?
Can you give me project source code, because I need to frontend side, Iʼm a backed developer so can you share me your github or gitlab ?

kamoliddinjamoliddinov
Автор

I not found an email or phone number in your profile, can you give me one?

RoadSafety
visit shbcf.ru