react-native-leaflet icon indicating copy to clipboard operation
react-native-leaflet copied to clipboard

CRS.Simple

Open ZiP0iP opened this issue 3 years ago • 4 comments

How to enable CRS.Simple?

ZiP0iP avatar Dec 28 '21 16:12 ZiP0iP

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...)

miallo avatar Jan 01 '22 10:01 miallo

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

ejhessing avatar Jul 15 '22 07:07 ejhessing

@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.

iamcrazyshank avatar Aug 25 '22 13:08 iamcrazyshank

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...

miallo avatar Sep 20 '22 07:09 miallo