I found a jQuery work-around for sorting the json...
$(#address).autocomplete({
delay: 0,
source: function( request, response ) {
$.ajax({
url:
/mapserver2015/rest/library/Samples/Sheboygan/Layers/Parcels.LayerDefinition/features.geojson,
dataType:
Ordering is not implemented yet. Ordering support is provider-specific, so I
wasn't sure of the best approach about wrapping functionality that is
provider-specific.
Now that I think about it more, I'll probably just let it crash and burn for
those that try to order results where the underlying
However, even if I add ordering support to mapguide-rest, the providers of
interest that you want to have ordered results (SDF/SHP) do not support
ordering.
We can have a limited form of ordering support at the MapGuide level for
these providers if we implement this:
Another question, the AutoComplete from jQuery UI, is cool and I managed to
test is with the JSON from the parcels in Sheboygan using rest:
/$(#address).autocomplete({
delay: 0,
source: function( request, response ) {
$.ajax({
url:
Thanks Mark,
I didn't see those parameters here:
https://github.com/jumpinjackie/mapguide-rest/wiki/Adapter-Documentation
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-feedback-tp5168657p5182743.html
Sent from the MapGuide Users mailing list archive at
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:
This is the full restcfg.json - anything missing?
{
Source: {
Type: MapGuide,
FeatureSource:
Library://Samples/Sheboygan/Data/Parcels_Writeable.FeatureSource,
FeatureClass: Parcels
},
Representations: {
xml: {
Adapter: FeatureSetXml,
In the FeatureClass property, replace the Parcels' with the fully qualified
name of the FDO feature class (i think it is SHP_Schema;Parcels)
- Jackie
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-feedback-tp5168657p5181168.html
Sent from the MapGuide Users
Use a qualified class name in your restcfg.json
Or wait for the next release that fixes this (we weren't checking and
forcing qualified class names if encountering a non-qualified one).
- Jackie
--
View this message in context:
Hi Jackie,
moved on to the editing with mapguide-rest - (Release 0.11.2)
Trying out
http://localhost/mapguide/mapviewerajax/?WEBLAYOUT=Library://Samples/Sheboygan/Layouts/SheboyganREST.WebLayout
Very cool. Had to tweak the xml representation to:
POST: {
AllowGroups:
Hi Mark,
Responses inline:
Issues/tweaks I've had to make to the responses (pretty much all are just
string operations in php code)
Calls to get the current list layers for the map;
1) would be nice if it include the link to generate the legend icon
2) would be nice if it also returned
Jackie,
In fact one of my colleagues created a similar which do this (in .net).
We have a function setlayervisibilityfilter to which you can pass a
list of features:
groupon: group1, group2
groupoff: group3
layeron: layer1
filteron: layer1:id4
apart from that the mapid of course.
I think we
Let me clarify this.
You can do layer/group toggling via the overlayimage URL route. If you look
at the bundled OpenLayers examples, you can see the requests that are made
when you toggle a layer or group on/off in the legend.
If you want to do this silently without requesting a new map image,
Hi Jackie,
that would be nice, I have a lot of trouble with this.
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-feedback-tp5168657p5169653.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
The benefit of mapguide-rest over the official MapGuide API is that the REST
API has a much simplified programming model and greater flexibility over the
official MapGuide API.
You have to know .net, PHP or Java to use the official MapGuide API.
With the REST API, you only need to know how to
Is it possible to switch Layers on/off in an Fusion-Map with REST?
I didn't find anything in the Rsst-Api.
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-feedback-tp5168657p5169389.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
Fusion doesn't render its layers with REST, so I can't image it would. The way
I see it, REST has nothing to do with the existing viewers or their
functionality. It's a new method of sending and receiving map information.
Fusion and AJAX already have their ways of sending and getting data. A
I don't believe such functionality is available. It's definitely something to
consider, but I'd have to think how to best do layer/group toggling in a
REST-ful manner.
- Jackie
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/mapguide-rest-feedback-tp5168657p5169414.html
Just noticed this. When I create a DWF using REST and I have labeled features,
the labels don't show up.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
Scratch that. The labeling is behaving strange depending on the sizing settings
I have.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
There's a whole suite of sample apps bundled with mapguide-rest demonstrating
various bits of the mapguide-rest API under rest/sampleapps/index.php
Or you can view a live version on my demo server:
http://119.9.23.42:8008/mapguide/rest/sampleapps/index.php
- Jackie
--
View this message in
Jackie, we currently use SQL server with php runner to make data entry forms
and database query capabilities and data editing. Do you think that
mapguide-rest can be used for this purpose? What are the benefits?
thanks
--
View this message in context:
Jackie,
Firstly I would just like to say it's a very powerful tool kit. I've
implemented on a number of my clients sites. I've used it in a couple of
different ways;
Option 1
I have a containing page using jquery/dojo objects reading mapguide rest
url's for dynamic content and an iframe for the
I've been using MapGuide REST to develop some custom printing functionality.
In particular I've I'm interested in the PDF and DWF output. The layered PDF
functionality I couldn't use because it doesn't work with maps with base map
groups yet.
The DWF output has been really helpful because you
HI Jackie,
I absolutely love the TransformTo parameter. I have been playing with
Cesium and MapGuide-Rest and love it.
I love that I can reach a lot of the standard layers/feature sources with a
path rather than having to configure the restcfg.json.
It would be cool to have a generic HTML
Ah, forgot about KML representations.
This should be somewhat easy to implement, though it probably doesn't make
much sense to support TransformTo in this case as the MgKmlService APIs
already auto-transform any features to LL84 when outputting KML, and keeping
in mind that the majority of the
26 matches
Mail list logo