Skip to content

Commit 98224eb

Browse files
committed
updated index
1 parent 32eaf40 commit 98224eb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/demos/leaflet-graphql/index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,14 @@ <h3>Edit GraphQL Query</h3>
106106
}
107107
""", from: "s", to: "o")
108108
109+
# Note: simplifyDp simplifies polygons on query time
110+
# Reduces amount of data and thus loading time
109111
geometry @one
110112
@pattern(of: """
111113
?s geo:hasGeometry/geo:asWKT ?x .
112-
BIND(STRDT(STR(geof:asGeoJSON(?x)), norse:json) AS ?o)
114+
BIND(STRDT(STR(geof:asGeoJSON(
115+
geof:simplifyDp(?x, 0.2)
116+
)), norse:json) AS ?o)
113117
""", from: "s", to: "o")
114118
}
115119
}

0 commit comments

Comments
 (0)