silentDjay / Mapstery

A geography game inspired by my long history of spending hours on end staring at maps
http://silentdjay.github.io/Mapstery/
6 stars 3 forks source link

Set reveal zoom level based on size of target country #14

Closed silentDjay closed 6 years ago

silentDjay commented 7 years ago

land area is included in the data payload for restcountries. Use it to dynamically calculate an appropriate google maps zoom level per target country - so that the entire country fills an appropriate amount of the screen and the country's map label is visible.

silentDjay commented 6 years ago

This is done. There are about 8 different ranges of area that are mapped to a specific zoom level; countries that are larger require less zoom. I've also taken the map projection into account when revealing arctic northern countries.