Telemachus

Telemachus

14.7k Downloads

Updating map's source

byaka opened this issue ยท 2 comments

commented

Thx for this project, it's really missed functionality in game.

Map UI interface (/telemachus/map.html) now missed some functions from original http://www.kerbalmaps.com/. For example 'Biome layer' and POI.

What about updating?
Simple replacing old sources (leafletksp.js, leafletksp.css) and moving images to folder 'images' work perfect.

commented

Hey, @Leaflet maintainer (and KSP player) here.

It's a bit more complicated than that. Leaflet is now at v1.0.0-rc3, whereas kerbalmaps is still using the incredibly old 0.5.4.

On top of that, the code for KSP maps needs to use non-standard map projections. I can see some Proj4JS code in kerbalmaps, but cannot see the projection definitions.

On top of that, telemachus maps would benefit hugely from wrapping CRS (infinite east/west scrolling), solar terminators (daylight/night display). Those things are going to be impressively difficult just by grabbing the kerbalmaps code (not to say, we Leaflet folks won't care about maintaining anything that old).


Edit: The code for the custom projections seems to be over this repo

commented

I've created https://gitlab.com/IvanSanchez/Leaflet.Kerbal in the hopes it can be a more up-to-date way of using Leaflet for kerbal maps.