[fusion-users] Setting the selection in the map to a specified polygon in a layer

Mike Adair madair at dmsolutions.ca
Wed Jan 14 13:12:41 EST 2009


Ari,

I can't recall where I got this from but this is an example I have used 
for testing:

  var xml = '<?xml version="1.0" encoding="UTF-8"?>';
  xml += '<FeatureSet 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:noNamespaceSchemaLocation="FeatureSet-1.0.0.xsd">';
  xml += '<Layer id="'+layer.uniqueId+'">';
  xml += '<Class id="SHP_Schema:Parcels"><ID>MSYAAA==</ID></Class>';
  xml += '</Layer></FeatureSet>';

In this case the <Class> element is for the Sheboygan dataset.

Mike

Ari Þórðarson wrote:
>
> Hi everyone
>
>  
>
> I have a map of a town with many houses wich are all in one layer and 
> each house has an id and I want to set the selection to one house with 
> a specified id.  I thought that I could maby use the "setSelection" 
> function in Map.js that is like this:
>
>  
>
> setSelection: function(selText, zoomTo)
>
>  
>
> Does anyone know in what kind of format the selText parameter for the 
> setSelection function is suposed to be in.
>
> It would be nice if I could se an example string that is passed to the 
> function.
>
>  
>
> Greetings, Ari
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> fusion-users mailing list
> fusion-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/fusion-users
>   

-- 
   Michael Adair
   Senior Software Architect
   DM Solutions Group Inc.

   Office: (613) 565-5056 x26
   madair at dmsolutions.ca
   http://www.dmsolutions.ca
   http://research.dmsolutions.ca




More information about the fusion-users mailing list