-
Notifications
You must be signed in to change notification settings - Fork 34
Added a globe to the bottom left hand corner that indicates the global position of the current map view. #16
base: master
Are you sure you want to change the base?
Conversation
…owing the current map location.
…borders are not shown (also white) and pings are Mapbox blue. Added the drag planetaryjs plugin so the globe can be rotated.
After intense consultation with my housemates, we decided on a different colour scheme. |
Hey thanks for putting this together @mwakerman. I have a couple pieces of feedback for you.
|
So I had thought about doing an overlayed image like that above but on purely subjective grounds decided to implement the globe instead. If you (or someone else) wants an image instead then some of my impl is probably re-usable but I personally prefer the globe. Regarding your dependency suggestiions, completely agree and will bring them in, trim them and browserify them into the bundle.js. Unfortunately Planetaryjs is not npm, I've contacted the owner to see if he want's to publish/is ok with me publishing it and will bring it in this way eventually. I beleive that the TopoJson library converts the world-110m.json file to GeoJSON for use with D3 which is doing the heavy lifting underneath Planetaryjs. For what it's worth, TopoJson allows for much smaller data files (http://stackoverflow.com/questions/14740705/difference-between-geojson-and-topojson) and is probably the smaller choice here given that the TopoJson library is 6KB and the world-110m.json file is 87KB (if file size is your concern). I'll also add a checkbox to the settings modal for hiding and showing the globe. |
- world-110m.json now sources from planetary.js node module.
Apologies for the months of radio silence. I've made the changes you suggested, namely putting the globe behind a setting (with it off as default) as well as sourcing dependencies from npm and rebuilding the bundle.js. |
Any chance this will ever be merged? If not, we can close. |
I replaced my previous new tab extension (https://chrome.google.com/webstore/detail/planet-view/hhhgdbldiopbpblfcohjaeinjjciplho) with this one but missed the globe feature. This is just a first cut and I'm happy to add an enable/disable setting but I saw you wrote on another PR that you were worried about the settings getting too big. I chose the colours from the Mapbox colour pallete but I'd also be interested in colouring the globe based on the map colours which you've also talked about doing in another PR.