need test tilejson for integration test with maplibre-native #1708
-
hello, i have been playing with maplibre-native for a while, and i'm using i'm starting to learn martin now, i've downloaded martin binary and ./martin world_cities.mbtiles
[2025-02-27T03:02:23Z INFO martin] Starting Martin v0.15.0
[2025-02-27T03:02:23Z INFO martin] Config file is not specified, auto-detecting sources
[2025-02-27T03:02:23Z INFO martin::config] Initializing main cache with maximum size 536870912B
[2025-02-27T03:02:23Z INFO martin::file_config] Configured source world_cities from /home/jin/martin/world_cities.mbtiles
[2025-02-27T03:02:23Z INFO martin] Use --save-config to save or print Martin configuration.
[2025-02-27T03:02:23Z INFO martin] Martin has been started on 0.0.0.0:3000.
[2025-02-27T03:02:23Z INFO martin] Use http://0.0.0.0:3000/catalog to get the list of available sources.
[2025-02-27T03:02:23Z INFO martin] Web UI is disabled. Use `--webui enable-for-all` in CLI or a config value to enable it for all connections. the server is up, but it seems document: https://maplibre.org/martin/using-with-maplibre.html only gives example on how to use it with maplibre gl js, how can i create a tilejson file to make it work for maplibre-native? like thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
This comment was marked as spam.
This comment was marked as spam.
-
i figure it out myself, after martin server is up,
|
Beta Was this translation helpful? Give feedback.
When you are using the web editor, you are using https.
Cors does prevent you from mixing http + https websites.
You can either disable cors in your browser, use a local installation of maputnik to preview styles or serve Marin via https.
To shortcut you:
Feel free to use https://nav.tum.de/tiles/openmaptiles to demo martin on OSM data.
Don't use said url in production though, I will move from openmaptiles to shortbread sometime next month.