What do you want implemented?
I'm currently writing an app which uses laser scanned 2D images as maps, and I would like to allow user to interact with these maps using flutter_map.
The problem is that these maps use cartesian coordiantes (measured in meters) instead of geographical coordinates. Although I can write a custom CRS to project map coordinates to pixels, but LatLng and LatLngBounds won't allow me to specify coordinates beyond 'geographical' boundaries ([-90, 90] for latitude and [-180, 180] for longitude).
Thus I think having a more generic version of 'LatLng' would be very helpful for users which doesn't use geographical coordinate systems.
What other alternatives are available?
There are two ways to workaround this:
- Write a transformation which would scale the cartesian coordiantes to fit the 'geographical' range. This is rather error-prone and may incur loss of precision.
- Inherit from
LatLon and bypass those boundary checks. This is easy to implement and works fine. But there are some methods and properties in LatLon (e.g. longitude and latitudeInRad) makes no sense for cartesian coordinates and may cause confustions.
Can you provide any other information?
No response
Platforms Affected
Android, iOS, Web, Windows, MacOS, Linux, Other
Severity
Annoying: Currently have to use workarounds
Requirements
What do you want implemented?
I'm currently writing an app which uses laser scanned 2D images as maps, and I would like to allow user to interact with these maps using
flutter_map.The problem is that these maps use cartesian coordiantes (measured in meters) instead of geographical coordinates. Although I can write a custom CRS to project map coordinates to pixels, but
LatLngandLatLngBoundswon't allow me to specify coordinates beyond 'geographical' boundaries ([-90, 90] for latitude and [-180, 180] for longitude).Thus I think having a more generic version of '
LatLng' would be very helpful for users which doesn't use geographical coordinate systems.What other alternatives are available?
There are two ways to workaround this:
LatLonand bypass those boundary checks. This is easy to implement and works fine. But there are some methods and properties inLatLon(e.g.longitudeandlatitudeInRad) makes no sense for cartesian coordinates and may cause confustions.Can you provide any other information?
No response
Platforms Affected
Android, iOS, Web, Windows, MacOS, Linux, Other
Severity
Annoying: Currently have to use workarounds
Requirements