# Smart Maps report ## 2025-02-12 ## DWG-7 UN Smart Maps Group {%hackmd WdEeg3SdQ-OHU9QFfiW1hg %} --- # Generative AI # Portable Web - Basemap Vector Tile Style w/ Apple Pkl --- ## Basemap Vector Tile Style ![style](https://hackmd.io/_uploads/Bk8s97_K1l.png) --- ## Basemap Vector Tile Style - M lines for a layer. N layers. - M ~ 25 - N ~ 40 - Traditional approach: M x N ~ 10000 lines --- ## Apple Pkl for Vector Tile Style - Pkl /pickle/: an embeddable configuration language which provides rich support for **data templating** and validation. - M lines for **layer templates**, N lines for layers. - (M + N = 65 lines) << (M x N = 10000 lines)! --- ## Pkl layer template ``` open class Layer { source: String? id: String? `source-layer`: String? = id type: String? maxzoom: Int? minzoom: Int? paint {} layout {} } class Line extends Layer { source: "a" type = "line" hidden c = "#f0f" hidden z = new Listing { 10 0.2 18 1 } paint { `line-width` = new Listing { "interpolate" new Listing { "linear" } new Listing { "zoom" } z[0] z[1] z[2] z[3] } `line-color` = c } } ``` --- ## Pkl layer definition ``` new Line { id = "Alur" c = "#649678" } new Line { id = "Gorong_Gorong" c = "#4682B4" paint { `line-dasharray` = new Listing { 4 2 } } } new Line { id = "Danau" c = "#008080" } new Line { id = "Bendungan" c = "#add8e6" } new Line { id = "Jembatan" c = "#808080" z = new Listing { 13 1 17 4 } } new Line { id = "Jalur Sutet" c = "#ff0000" } new Line { id = "Pagar" c = "#008000" z = new Listing { 13 0.4 17 2 } } ``` --- ## Much more productive ![example](https://hackmd.io/_uploads/H1tH9QuKkl.png) --- ## Keep web maps open for a better world. ## Test new technologies for future geospatial applications.
{"title":"Smart Maps report","description":"UN Smart Maps in ISPRS Commision IV Symposium","contributors":"[{\"id\":\"fc0f9ab3-2844-43fe-a29f-da028138304f\",\"add\":1888,\"del\":88}]"}
   changed 3 months ago 90 views
   owned this note