Re: [mapguide-users] How to get selection with fusion??

2014-03-05 Thread Kajar
Ok I put the code to Aqua index.html also with openlayers popup code like
this, but cant get popup working when select feature on map. What I'm doing
wrong, I'm not skilled programmer, just beginner.


Re: [mapguide-users] How to get selection with fusion??

2014-03-05 Thread GordonL
If you are using the Template (i.e. Aqua) I would just put the code in the
index.html and not worry about a widget for now...





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/How-to-get-selection-with-fusion-tp4187847p5107726.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


Re: [mapguide-users] How to get selection with fusion??

2014-03-05 Thread Kajar
I use MGOS 2.6, there is such widget as map.js only Maptip.js. Is this same
as map widget.
But where this selection info are displayed?



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/How-to-get-selection-with-fusion-tp4187847p5107612.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] How to get selection with fusion??

2010-05-12 Thread lzzgeo

   I am using MGOS 2.1 with fusion, I just want to get the information about
selction through the map. 
   there are some source code in the following.



Fusion.registerForEvent(Fusion.Event.FUSION_INITIALIZED,
fusionInitialized);
Fusion.registerForEvent(Fusion.Event.FUSION_ERROR, fusionError);
Fusion.initialize();


var themap;
var fusionInitialized = function() {
$('AppContainer').resize({forceResize: true});

 themap = Fusion.getWidgetById('Map');
 themap.registerForEvent(Fusion.Event.MAP_SELECTION_ON, selectionOn);
}


var selectionOn = function()
{
 themap.getSelection(displaySelection);
}

function displaySelection(res){
var nums =res.getNumLayers();
alert(nums);
}

but, I get the message "getNumLayers() is not defined". why??
Is there something wrong?

-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/How-to-get-selection-with-fusion-tp5044598p5044598.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