Comments (2)
Hi @ohrie
I tried this on the test database and it still works. Would you mind share you SQL here?
COMMENT ON FUNCTION "public"."function_zxy_query" ( "z" int4, "x" int4, "y" int4, "query" json ) IS '
{
"description": null,
"fields":{
"Gid":"int4",
"TABLE":"text"
},
"foo": {"bar": "foo"}
}
';
async@LAPTOP-PLI51BMO:~/repos/martin$ curl http://localhost:3000/function_zxy_query
{"tilejson":"3.0.0","tiles":["http://localhost:3000/function_zxy_query/{z}/{x}/{y}"],"name":"function_zxy_query","fields":{"Gid":"int4","TABLE":"text"},"foo":{"bar":"foo"}}
from martin.
@ohrie you are correct that, per specification, tilejson must include vector_layers
value that has a fields
sub-value. The example in the documentation actually does that. There is one issue: in the Modifying TileJSON section it says that it generates tilejson automatically, but does not say that it is not a fully valid tilejson unless the content of the tile is non-vector (but at the moment there is no way for the user to specify that).
We cannot really fix this automatically because Martin has no idea which tiles are available. Only after the first tiles have been requested, we could, in theory, wait until the first tiles start being generated, parse them, figure out available fields, and update vector_layers
, but this feels like a very hacky, imperfect, and unstable solution (tiles may not include all possible fields).
from martin.
Related Issues (20)
- Support docker compose plugin to justfile HOT 4
- Some `mbtiles` tool operations produce db or disk/machine out of space errors HOT 3
- Migrate MacOS CI to use new MacOS M1 runners
- Implement PMTiles S3 bucket support with authentication HOT 4
- Martin v0.11.6 much faster than v0.12.0 and 0.13.0?? HOT 3
- Implement `--preferred-encoding (gzip|brotli)` configuration
- Add `--base-path` CLI option to override the URL path in the tilejson HOT 6
- Website breaks when you click on Jan 1st in the demo
- Add a Tile Preview HOT 1
- How to handle dynamic sources? HOT 2
- For `--auto-bounds quick`, use `ST_EstimatedExtent` instead of `ST_Extent` for quicker results HOT 3
- `Event not found` when starting martin HOT 3
- Add file extension to individual tile URL
- Failed local installation due to mismatched types compilation error HOT 1
- What happens when a new materialized view / table added to the database? HOT 1
- db error: ERROR: column ix.indnkeyatts does not exist HOT 6
- Detect old postgresql versions and warn user HOT 2
- version `GLIBC_2.33' not found (required by mbtiles) HOT 6
- martin-cp doc source param HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from martin.