[mapguide-users] Mapguide-rest:

2015-03-13 Thread RenoSun
Environment
AIMS2014
IIS 7.5
Windows Server 2008 R2

1. Is there a configure file allowing users to decide which feature sources,
and the fields of the features can be queried?
For example: I don't need a permission to access this feature source 
http://localhost/mapserver2014/rest/library/Samples/Sheboygan/Data/Parcels.FeatureSource/features.geojson/SHP_Schema/Parcels?filter=RNAME%20LIKE%20%27SCHMITT%25%27maxfeatures=10
http://localhost/mapserver2014/rest/library/Samples/Sheboygan/Data/Parcels.FeatureSource/features.geojson/SHP_Schema/Parcels?filter=RNAME%20LIKE%20%27SCHMITT%25%27maxfeatures=10
  

It's a very useful way to query the feature sources since I don't even need
to build a restcfg.json if I only need to access geojson, and xml of the
features. However, it will be great that I can choose which to shares to
public or not.

2.  The RuntimeMaps are not working. Is it because I am using AIMS 2014 not
MapGuide 2.6?
I tried following links under sampleapps page:
http://osgeo-org.1560.x6.nabble.com/file/n5193319/MapGuideRESTAPIwithOpenLayers.png
 
I got following images:
http://osgeo-org.1560.x6.nabble.com/file/n5193319/kitchensink.png 

However, 
Sheboygan map as an XYZ tile layer (OpenLayers 2)
Sheboygan map as an XYZ tile layer (OpenLayers 3)
Sheboygan map as a vector tile layer
Sheboygan map as a set of dynamic GeoJSON layers (OpenLayers 3)
OpenLayers map consuming published data
are working very well.

Would you please know what should I do to make RunTimeMaps work?

Thank you for all your helps!



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapguide-rest-tp5193319.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] MapGuide Fusion API - turn on/off Layers or LayerGroups and Query

2015-03-13 Thread RenoSun
Hi guys,

I did following Java Scripts to turn on the layers in my fusion html.

var mapWidget = Fusion.getMapById('Map');
 mapWidget.aMaps[0].getLayerByName('LayerName').show();

, and it works. 

However, after above codes I did mapWidget.query(options);, and it won't
select the features of the layer just turned on. 

All my codes are under var nitPanelHandler = function () {.}. Should I
put it here or other places?

Does anyone know the codes to turn on/off the map layer groups by using
Fusion API?

I imagine the codes will look like
mapWidget.aMaps[0].getLayerGroupByName('LayerName').show();, and I also
tried to find the API reference for the solution. However, I have no luck so
far.

Thanks for all your helps!



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/MapGuide-Fusion-API-turn-on-off-Layers-or-LayerGroups-and-Query-tp5193321.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users