[mapguide-users] mapguide-rest feedback
Mark Volz (LeapCAD)
mark at leap-cad.com
Tue Jan 20 21:35:11 PST 2015
Hi Gordon,
Yes, JQuery + Mapguide = very cool functionality.
To order your results use the following parameters
orderBy=<column name>
orderOption=ascending or descending
so in your example try this;
$.ajax({
url:
"/mapserver2015/rest/library/Samples/Sheboygan/Layers/Parcels.LayerDefinitio
n/features.geojson",
dataType: "json",
data: {
filter: "RBILAD LIKE '" + request.term + "%'",
orderBy= RBILAD,
orderOption=ascending
},/
You can also specify which field(s) get returned by using the properties
tag. This helps to cut down on the amount of traffic required for auto
complete functions.
Hope this helps.
Mark
More information about the mapguide-users
mailing list