Replies: 5 comments 9 replies
-
AFAIK, the static map api is to be made in-sync with Maptiler Cloud - https://docs.maptiler.com/cloud/api/static-maps/ also, in the video, on |
Beta Was this translation helpful? Give feedback.
-
I'd love to see something like @mnutt static endpoint page, like in #427 (comment) Maybe make it a page you can drag around to fill in some of the values |
Beta Was this translation helpful? Give feedback.
-
For the movend idea I feel like echoing out that information all the time doesn't seem that great. Maybe something like a button would be nice. Like a button to copy the url, or a plugin like https://github.com/watergis/maplibre-gl-export |
Beta Was this translation helpful? Give feedback.
-
Below a prototype of the interface. Thanks for the feedback on console logging, it generates Static Image API URLs, but it was not intended to be the final shipping product; (It's the first time I've referred to logging as FC : ) The Svelte prototype is made after reviewing how WaterGIS makes UI components for MapLibre. The interface changes would need all the features the Static Images documentation advertises is available:
But more importantly,
Customer interface proposal for Static Images (non-functioning, HTML only) |
Beta Was this translation helpful? Give feedback.
-
@vinayakkulkarni — thank you for looking into this. I was able to get the The error seems unrelated to work. Any ideas?
Server log
Result of running: node src/main.js --verboseobjc[60841]: Class GNotificationCenterDelegate is implemented in both /Users/roblabs/Documents/github/maptiler/tileserver-gl/maptiler/tileserver-gl/node_modules/sharp/vendor/8.14.2/darwin-x64/lib/libvips-cpp.42.dylib (0x3a341dc60) and /Users/roblabs/Documents/github/maptiler/tileserver-gl/maptiler/tileserver-gl/node_modules/canvas/build/Release/libgio-2.0.0.dylib (0x3a1a5a6b0). One of the two will be used. Which one is undefined. Starting tileserver-gl v4.4.10 No MBTiles found [DEMO] Downloading sample data (zurich_switzerland.mbtiles) from https://github.com/maptiler/tileserver-gl/releases/download/v1.3.0/zurich_switzerland.mbtiles [INFO] Automatically creating config file for zurich_switzerland.mbtiles [INFO] Only a basic preview style will be used. [INFO] See documentation to learn how to create config.json file. { "options": { "paths": { "root": "/Users/roblabs/Documents/github/maptiler/tileserver-gl/maptiler/tileserver-gl/node_modules/tileserver-gl-styles", "fonts": "fonts", "styles": "styles", "mbtiles": "/Users/roblabs/Documents/github/maptiler/tileserver-gl/maptiler/tileserver-gl" } }, "styles": { "basic-preview": { "style": "basic-preview/style.json", "tilejson": { "bounds": [ 8.275, 47.225, 8.8, 47.533 ] } } }, "data": { "v3": { "mbtiles": "zurich_switzerland.mbtiles" } } } Starting server Listening at http://[::]:8080/ Startup complete GET / 304 2.140 ms - - GET /_nuxt/entry.f31f2c4b.css 304 1.075 ms - - GET /_nuxt/entry.5095f24e.js 304 0.383 ms - - GET /_nuxt/index.3228e94b.js 304 0.414 ms - - GET /_nuxt/fetch.c3e06b80.js 304 0.437 ms - - GET /data.json 304 2.353 ms - - GET /_nuxt/error-component.a1d032b4.js 304 0.555 ms - - GET /styles.json 304 0.539 ms - - GET /images/logo.png 304 0.467 ms - - GET /images/placeholder.png 304 1.487 ms - - GET /images/header.png 304 0.427 ms - - GET /styles/basic-preview/0/0/0.png 200 154.283 ms - 31292 GET /styles/basic-preview/ 404 2.473 ms - 160 GET /styles.json 304 0.314 ms - - GET /_nuxt/error-component.a1d032b4.js 304 1.335 ms - - GET /data/openmaptiles/ 404 0.867 ms - 157 GET /styles.json 304 0.332 ms - - GET /_nuxt/error-component.a1d032b4.js 304 0.479 ms - - |
Beta Was this translation helpful? Give feedback.
-
I want to make the Static Images API easier to use for non-developers on my team. Basic idea is to generate the URL for a sample Static Image based on
moveend
orcenter
. I've built a prototype based off of TileServer 4.4.4.Thoughts on usability of the current Static Image API and how it can be upgraded?
Problems this solves
location.hash
is#z/lat/lon
, but the Static Image URL expects/lon,lat,z/
.Issues that arise for usability, or before a real PR:
index.tmpl
, a sample Static Image URL can be generated based on the Stylecenter
. Or overridden via thetilejson
key in the configuration.viewer.tmpl
, where does the generated URL go? Console or new UI button that copies a basic Static Image URL?Console example
static image via moveend event: http://localhost:8080/styles/basic-preview/static/8.5714,47.3661,11/512x512@2x.png
Index.html
📸 example static image API via TileJSON center: basic-preview/static/8.543,47.367979,15.97/512x512@2x.png
🎥 Prototype Demo
TileServer-GL-Static-Image-Enhancements-480a.mov
Beta Was this translation helpful? Give feedback.
All reactions