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

Tiles are disorderly placed on the screen #472

Open
Zit-Zitoun opened this issue Jun 30, 2024 · 1 comment
Open

Tiles are disorderly placed on the screen #472

Zit-Zitoun opened this issue Jun 30, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Zit-Zitoun
Copy link

Platforms

android

Version of flutter maplibre_gl

0.20.0

Bug Description

Hello everyone

I'm trying to display locally hosted (with martin server) tiles on my flutter app, the software shows really good performance but the tiles are disorderly placed which makes it unusable. I'm pretty sure that the problem comes from maplibre gl library as the tiles were perfectly shown on a bunch of other softwares (QGIS, leaflet, ...).

The style file I'm using is in the attached files.
osm_liberty(18).json

Any help would be greatly appreciated!

Thank you!

Here is what is displayed on the screen at different zoom levels:
Screenshot_20240630_135806
Screenshot_20240630_135816
Screenshot_20240630_135836
Screenshot_20240630_135845

Steps to Reproduce

.

Expected Results

.

Actual Results

.

Code Sample

import 'package:flutter/material.dart';
import 'package:maplibre_gl/maplibre_gl.dart';

void main() {
  runApp(
    MaterialApp(home: MyApp())
  );
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    //styleUrl is the path to a second locally hosted server which returns a JSON style file
    const styleUrl = "http://192.168.1.28:8000/api";
    return MapLibreMap(
      styleString: styleUrl,
      myLocationEnabled: true,
      initialCameraPosition: const CameraPosition(target: LatLng(0.0, 0.0)),
      trackCameraPosition: true,
    );
  }
}
@Zit-Zitoun Zit-Zitoun added the bug Something isn't working label Jun 30, 2024
@josxha
Copy link
Collaborator

josxha commented Jun 30, 2024

This is a tile scheme problem. Could it be that sour martin tile server serves tms tiles?

https://maplibre.org/maplibre-style-spec/sources/#scheme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants