This repository was archived by the owner on Mar 8, 2023. It is now read-only.
Replies: 1 comment 10 replies
-
@hugosoli , does something like: You can use the get syntax to return an object, which you can then query for the |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi I want to have a Theme that has some data drive style. I upload a geojson with the Data Hub CLI and it works fine. One tag was authomatically generated from the file name
id │ geometry.type │ tags │ createdAt │ updatedAt │
├─────────────────────────┼─────────────────────────┼─────────────────────────┼─────────────────────────┼─────────────────────────┤
│ p7RjANTPCd776Wez │ Polygon │ coloniascdmx │ 10/24/2021, 06:46 AM │ 10/24/2021, 06:46 AM
I have tries several option at the style description. for example:
{//colonias
description: "GeoJson polygon",
when: [
"all",
["==", ["geometry-type"], "Polygon"],
["==", ["get", "@ns:com:here:xyz.tags[0]"], "coloniascdmx"],
],
technique: "fill",
attr: {
color: "#10",
lineColor: "#FF000010",
lineWidth: 1
}
}
The object sees to have such feature:
userData:
$geometryType: "polygon"
$id: "yaMmk6oT6U4MECC3"
$layer: "NUcQuJnH"
$level: 13
$zoom: 14
@ns:com:here:xyz: "{"tags": ["coloniascdmx"], "space": "NUcQuJnH", "createdAt": 1635075994241, "updatedAt": 1635075994241}"
alcaldi: "CUAUHTEMOC"
cve_alc: 15
cve_col: "15-011"
entidad: 9
g_pnt_2: "19.4204440063,-99.1282884556"
geo_shp: "{"type": "Polygon", "coordinates": [[[-99.12609109908855, 19.42281743313811], [-99.12658750563517, 19.421710953869873], [-99.12713303937066, 19.420494952326166], [-99.12716249417296, 19.42030031448885], [-99.12735449833221, 19.41903153638596], [-99.12740"
id: "yaMmk6oT6U4MECC3"
nombre: "ESPERANZA"
secc_cm: "4892"
secc_pr: "4893"
_id: 1732
Any idea or help?
Cheers and thanks
Hugo
Beta Was this translation helpful? Give feedback.
All reactions