Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change default viewing radius? #28

Open
pbhound opened this issue Jun 4, 2022 · 2 comments
Open

change default viewing radius? #28

pbhound opened this issue Jun 4, 2022 · 2 comments

Comments

@pbhound
Copy link

pbhound commented Jun 4, 2022

is there a setting to use to change the default viewing radius? I live in a metropolitan area with several cities all right next to each other and within about a 20-mile radius of my address. but the map shows what appears to be about a 50-mile radius. Is there a setting that I can use to change this?

@mlcampbe
Copy link

mlcampbe commented Jul 8, 2022

I've not tried it but perhaps look at changing the zoom level. In the file

<WeatherMap zoom={9} dark={darkMode} />
is the default zoom level of 9. I don't know if you should go larger or smaller but you can change that then rebuild the client parts:

cd client
npm install
npm run-script prod

See if that helps

@bnelson333
Copy link

can confirm that this works, thank you! I wanted to zoom in further than the default (I was seeing too many cities that are too far away from me). I changed my zoom level to 12, rebuilt as you suggested, and it works great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants