[mapguide-users] Re: Setting Initial Map Selected object
Mike Adair
madair at dmsolutions.ca
Thu Jun 3 09:58:11 EDT 2010
Jose,
The parameters should look like what gets passed to Query.php when you
select a feature by clicking on the map. Look at the Firebug console
when you click to select and then examine the values being passed in the
Post tab.
Mike
Jose Cerrejon wrote:
> Mike Adair wrote:
>
>> doStartup: function() {
>> this.mapWidget.deregisterForEvent(Fusion.Event.MAP_LOADED,
>> this.doStartupFn);
>>
>> if (this.startup.spatialfilter != '' || this.startup.filter != '')
>> {
>> var options = {
>> layers: this.startup.selectlayer,
>> geometry: this.startup.spatialfilter,
>> filter: this.startup.filter,
>> queryHiddenLayers: true,
>> zoomTo: true
>> }
>> this.mapWidget.query(options);
>> }
>> },
>>
>>
>
> I'm using this code above in Mapguide.js with the last SVN Fusion repo, I
> added in the initialize Function the next:
>
> this.startup = {};
> this.startup.filter = Fusion.getQueryParam('filter');
> this.startup.selectlayer = Fusion.getQueryParam('selectlayer');
> this.startup.spatialfilter = Fusion.getQueryParam('spatialfilter'); // I
> don't have this param in the URL.
>
> But two msgbox show me: Fusion Error: FATAL: invalidXMLDocument
>
> I know i'm near from the solution. Any help? Thks.
>
>
--
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 mapguide-users
mailing list