[mapguide-users] Select specific layer and feature by passing value to flexible layout (AIMS2014)

RenoSun renolionheart at gmail.com
Mon May 27 22:20:53 PDT 2013


Thank you for your reply Jakie :)

However, I tried to pass polygon feature also such as following:

POLYGON ((-124.472369616317 49.3597580182233, -124.472369579183
49.3597811073343, -124.472422561878 49.359789284387, -124.472433368903
49.3597922360085, -124.472444400053 49.3597941898754, -124.472455563411
49.3597951297073, -124.472466765961 49.3597950476733, -124.472477914359
49.3597939444568, -124.472488915712 49.3597918292502, -124.472499678352
49.3597887196784, -124.472510112601 49.3597846416513, -124.472520131517
49.3597796291488, -124.472529651618 49.3597737239368, -124.472537831166
49.3597676021045, -124.472545473189 49.3597608211519, -124.472552524727
49.3597534280715, -124.472558936913 49.3597454740978, -124.472564665311
49.3597370143523, -124.472569670221 49.3597281074616, -124.47257391696
49.3597188151509, -124.472577376098 49.3597092018165, -124.472577113936
49.3595117543831, -124.472576798053 49.3592738260555, -124.472574958424
49.3592658900559, -124.47257246134 49.3592581357737, -124.472569324307
49.359250617573, -124.472565569317 49.3592433881625, -124.472561222698
49.3592364982265, -124.472556314921 49.3592299960693, -124.472550880395
49.3592239272763, -124.47254481999 49.3592182155042, -124.472538293332
49.3592130429227, -124.472531348241 49.3592084474288, -124.4725240356
49.3592044626919, -124.472516408985 49.3592011179061, -124.472508524272
49.3591984375773, -124.47250043923 49.3591964413431, -124.472492213094
49.3591951438289, -124.472483906134 49.359194554541, -124.472370554909
49.3591744547237, -124.472370070709 49.3594754926828, -124.472369616317
49.3597580182233))

Should I create a tiny simple polygon based on the centroid of my parcel
data? The polygon data above is one of my parcel polygon which FeatId = 2.

My goal is to send filter, and geometry parameters to my flexible layout
page as following: 
../mapserver2014/fusion/templates/mapguide/turquoiseyellow/index.aspx?ApplicationDefinition=Library%3a%2f%2fQualicumBeach%2fFlexibleLayouts%2fProperty.ApplicationDefinition&SESSION=<%=
mysessionid %>&extent=<%= extent  %>&filter=<%= filter %>&geometry=<%=
geometry%>

I embed the flexible layout in the frame, and I can get geometry and filter
Request.QueryString from my GeoRest site url link.

The process will be as following:

1. GeoRest site --> Link to the
Default.aspx?extent=####&geometry=####&filter="FeatId=2"
2. Default.aspx including frameset including flexible layout page:
../mapserver2014/fusion/templates/mapguide/turquoiseyellow/index.aspx?ApplicationDefinition=Library%3a%2f%2fQualicumBeach%2fFlexibleLayouts%2fProperty.ApplicationDefinition&SESSION=<%=
mysessionid %>&extent=<%= extent  %>&filter=<%= filter %>&geometry=<%=
geometry%>
3. The flexible layout aspx page will get the request parameters, and I can
send parameter to map.query() method.

var options = {};
options.geometry = 'PLOLYGON(.............)';
options.layers = 'QBParcels';
options.filter = 'FeatId=2';
mapWidget.query(options);

Where should I add this codes? 

In the var fusionInitialized = function() {}?

My idea is from City of Nanaimo GIS website as following:

http://maps.nanaimo.ca/data/property/105510.html
-->Open in NanaimoMap

Jason said that you may know how to answer my question :)

Thank you very much :)



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Select-specific-layer-and-feature-by-passing-value-to-flexible-layout-AIMS2014-tp5055669p5056295.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list