pavel-corsaghin / react-native-leaflet

A LeafletView component using WebView and Leaflet map for React Native applications
MIT License
99 stars 42 forks source link

CRS.Simple #11

Open ZiP0iP opened 2 years ago

ZiP0iP commented 2 years ago

How to enable CRS.Simple?

miallo commented 2 years ago

If I am not mistaken, right now this is not possible. I think we would need to put crs={L.CRS.Simple} into the react-leaflet Map but these files from the old project are bundled into html and are not really readable right now.

Right now the HTML is just a static resource, but a colleague of mine has made some efforts to fix the old files for generating it, but so far we did not fully succeed with a good workflow. Hopefully we will have some more time in the next few weeks to get some of this done and maybe, just maybe there would be a possibility to enable support for this at some point (though I did not take a look at all the rest of the handling of the map - there might be lots of additional challenges ahead...)

ejhessing commented 1 year ago

hello, just checking if there was any progress made on the CRS.simple?

iamcrazyshank commented 1 year ago

@pavel-corsaghin @miallo @jpstotz @0x13b Any updates on this enhancement? I am trying use a game map and i want to use CRS.Simple for it.

miallo commented 1 year ago

Hey @iamcrazyshank! Sorry for no response from my side. Unfortunately there are a couple of reasons why I am of no help: a) I don't really know a lot about leaflet and nothing about CRS.Simple in specific and b) unfortunately this feature is a bit out of scope for my employer, too and privately I already have too many open projects to tackle another one at the moment... You might also take a look at it yourself - this lib is not too complicated, though there is a rather large blob of compiled HTML in android/src/main/assets/leaflet.html where I have no idea if you are in need to touch this. If that is the case it might be a good idea to try and figure out how this was created in the original lib (and I guess if you figure that out, then a PR is welcome as well ;) )

Sorry for this - I hope you can figure it out...