Ajaxquery

De Semantic MediaWiki - Sandbox

Issue

You don't want all the points on the map to load (because of performance reasons), just the points that are currently in the field of view.

Load new points when dragging/zooming the map

{{#ask:
[[Category:Location]] [[Has coordinates::52° 30' 59", 13° 24' 0" E  (50 km)]] [[Has coordinates::+]]
| ?Has coordinates
| format = leaflet
| ajaxquery = [[Category:Locations]]
| ajaxcoordproperty = Has coordinates
}}


example without ajax, no new points are loaded when zooming out

{{#ask:
[[Category:Location]] [[Has coordinates::52° 30' 59", 13° 24' 0" E  (50 km)]] [[Has coordinates::+]]
| ?Has coordinates
| format = leaflet
}}
Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.