fac-17 / Generation-Change

Generation Change (Tech For Better Project)
https://generation-change.netlify.com/
1 stars 3 forks source link

Centering the map #112

Closed lucymk closed 5 years ago

lucymk commented 5 years ago

I only had a super quick look at this, but I used leaflet on a FAC project and this was the set up page: https://github.com/fac-12/upShop/blob/master/public/map.js

it's not in React, but hopefully still useful.

I think setView is the important function?! https://leafletjs.com/reference-1.5.0.html

This is only a little thing to go on, but hopefully it might help 😄

gminova commented 5 years ago

Yes Lucy you Goddess!! thank you!

xIrusux commented 5 years ago

Hi lucy :)

Thank you for your help. Reading your tip together with a bit of googling made me understand what to do yesterday.

It works now yay!

Happy Friday