Unable to open OSM in 32643 projection in flutter_map 7.0.2. #1998
Labels
bug
This issue reports broken functionality or another error
needs triage
This new bug report needs reproducing and prioritizing
What is the bug?
When I add crs projection OSM layer not loading and getting status 400 in osm request.
`
final double initialResolution = 156543.03392804097;
proj4.Projection epsg32643 = proj4.Projection.add(
'EPSG:32643',
'+proj=utm +zone=43 +datum=WGS84 +units=m +no_defs +type=crs',
);
Proj4Crs crs32643 = Proj4Crs.fromFactory(
code: 'EPSG:32643',
proj4Projection: epsg32643, //proj4.Projection.get('EPSG:32643')!,
resolutions: List.generate(20, (zoom) {
return initialResolution / (1 << zoom); // Divide by 2^zoom
}),
);
FlutterMap(
options: MapOptions(
crs: crs32643,
initialCenter: const LatLng(22.7960, 80.9263),
onPointerUp: (event, point) {},
),
),
children: [
TileLayer(
urlTemplate: "https://tile.openstreetmap.org/{z}/{x}/{y}.png",
tileProvider: CancellableNetworkTileProvider(),
)
]
),
`
How can we reproduce it?
Do you have a potential solution?
No response
Platforms
Iphone 12
Severity
Minimum: Allows normal functioning
The text was updated successfully, but these errors were encountered: