Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to open OSM in 32643 projection in flutter_map 7.0.2. #1998

Open
quantela-ashutosh opened this issue Dec 12, 2024 · 0 comments
Open
Labels
bug This issue reports broken functionality or another error needs triage This new bug report needs reproducing and prioritizing

Comments

@quantela-ashutosh
Copy link

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?

  1. Create custom crs
  2. In Map option update crs

Do you have a potential solution?

No response

Platforms

Iphone 12

Severity

Minimum: Allows normal functioning

@quantela-ashutosh quantela-ashutosh added bug This issue reports broken functionality or another error needs triage This new bug report needs reproducing and prioritizing labels Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue reports broken functionality or another error needs triage This new bug report needs reproducing and prioritizing
Projects
Status: To do
Development

No branches or pull requests

1 participant