loadingObj is undefined, map.query in Fusion2

1 message Options
Embed this post
Permalink
Simon Pelicon

loadingObj is undefined, map.query in Fusion2

Reply Threaded More More options
Print post
Permalink
Hi!

1.
I am trying to use Fusion with Mapguide 2.0.2.
I have created a new Jx.Panel and then i use setContentURL function to
some url addres.

This works fine in Fusion 1.1 but with Fusion 2.0 beta i get error:

this.loadingObj
is undefined in function

setBusy : function(isBusy) {

this.busyCount += isBusy?1:-1;
this.loadingObj.img.style.visibility =
(this.busyCount>0)?'visible':'hidden';

}

2.
Using map.query in Fusion 1.1 does not require geometry parameter as
Fusion 2.0. (i use Mapguide Open Source 2.0.2)
Using map.query with Fusion 2.0 without options.geometry returns error:

Invalid argument(s):

    [1] = ""

The AGF text is invalid because it failed to parse into a valid geometry
object.</h2>

Invalid argument(s):

    [1] = ""

The AGF text is invalid because it failed to parse into a valid geometry
object.

Exception occurred in method MgParseAwkt.ParseAwkt at line 89 in file
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\common\geometry\Parse/ParseAwkt.cpp


If i add geometry to other parameters works ok.

options.geometry = 'POLYGON((6129642 4676854,6776931 4676854,6776931
5042345,6129642 5042345,6129642 4676854))';
options.filter = 'KAPACITET <= 100';
options.layers = 'Bakarnikabal';
options.maxFeatures = 10;
map.query(options);

How should i use query function in Fusion 2.0?

Simon



_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users