Flutter_map: Add CRS.SIMPLE support?

Created on 17 Jan 2019  路  7Comments  路  Source: fleaflet/flutter_map

Sometimes, maps do not represent things on the surface of the earth and, as such, do not have a concept of geographical latitude and geographical longitude. Most times this refers to big scanned images, such as game maps. CRS.Simple

enhancement good first issue

Most helpful comment

Looking at the example for the web component and CRS Simple trying to adapt this for Flutter breaks first with the bounds for the image overlay. They have to be in the range of -90 to 90 / -180 to 180 as the latlong class doesn't allow other values. I removed this constraint but the result is not what I would expect. The zoom seems to be broken, I can't see the complete picture.

If anybody has a working example with an image and CRS Simple I would be happy :)

All 7 comments

Any progress on this issue?

It may already be implemented https://github.com/johnpryan/flutter_map/issues/191 Did somebody check that?

191 was closed but if someone would like to implement and test it I'm happy to merge. There should also be an example app added to demonstrate.

@johnpryan which is the fork to be tested?

CrsSimple is now part of this package

it sounds like a good way to implement a custom 2D map with bitmap image and draw maker with pixel (x, y) and is there any demo for CRS.SIMPLE ?

Looking at the example for the web component and CRS Simple trying to adapt this for Flutter breaks first with the bounds for the image overlay. They have to be in the range of -90 to 90 / -180 to 180 as the latlong class doesn't allow other values. I removed this constraint but the result is not what I would expect. The zoom seems to be broken, I can't see the complete picture.

If anybody has a working example with an image and CRS Simple I would be happy :)

Was this page helpful?
0 / 5 - 0 ratings