Now that maxar is gone, the app lacks a good secondary aerial image provider.
I tried adding Bing today but failed. The main issue is, that the app uses Leaflet and Bing has some crude special format that does not work out of the box.
Maybe someone with more knowledge of Leaflet and TypeScript can solve this…
We can also copy the Metadata fetch from iD … which all work fine until the QuadKey stuff comes into play (the {u} param). This requires the current map coordinates to calculate the right tile URL which we do not have in a regular L.tileLayer call.
Now that maxar is gone, the app lacks a good secondary aerial image provider.
I tried adding Bing today but failed. The main issue is, that the app uses Leaflet and Bing has some crude special format that does not work out of the box.
Maybe someone with more knowledge of Leaflet and TypeScript can solve this…
Here are some pointers
utilAesDecrypt
helper method. That part worked fine.{u}
param). This requires the current map coordinates to calculate the right tile URL which we do not have in a regularL.tileLayer
call.{ imagerySet: 'AerialOSM' }
My code is at https://github.com/tordans/parking-lanes/commits/try-adding-bing2/ but that is just
WIP
commits trying to get anything going … so don't expect anything useful.