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


Re: [mapguide-users] FDO PostgreSQL/PostGIS provider on 64bit

2014-03-05 Thread kintela
Hi Jackie

I have installed PostgreSQL 9.3 x64 and Mapguide opensource 2.5 x64 but how
could I being sure that I have the correct version of libpq.dll?

When I open the ..\fdo\postgresqlprovider.dll with The dependency walker I
have several errors that affect to libpq.dll

Thanks



-
kintela
@esekintela
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/FDO-PostgreSQL-PostGIS-provider-on-64bit-tp4183551p5107640.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 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] Mapgiude OS Mobile Viewer

2014-03-05 Thread doug709
I am running this viewer with one of my maps and it runs very well except for
the layer browser. The issue is with expanding a layer which contains
sublayers. When I click on such a layer it switches to the loading animation
and does not advance further. The list of sublayers does not expand out like
on your demo site. I've been looking at the source and am pretty stumped
about why this is happening. Does anyone have any ideas what is going wrong?



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapgiude-OS-Mobile-Viewer-tp4941633p5107746.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] Mapgiude OS Mobile Viewer

2014-03-05 Thread Rémy Gourrat
Hi,

You're not alone.

I never take the time to describe it but it's same for my maps too.

Rémy Gourrat





-
AG-Carto - Bayonne
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapgiude-OS-Mobile-Viewer-tp4941633p5107769.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] Pragmatically Turn off MapTip?

2014-03-05 Thread amorsell
Hi Gordon,
You must have more than one instance of the MapTip widget in your layout?

I am able to use the following to deactivate the maptip and toggle the UI
button to the off position.  I put this in my template index.html
fusionInitialized function since the customer wanted maptips initially
turned off by default.

Fusion.getWidgetsByType('Maptip')[0].deactivate();
Fusion.getWidgetsByType('Maptip')[0].mapTipBtn.setActive(false);

Andy



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Pragmatically-Turn-off-MapTip-tp5106147p5107771.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] Mapgiude OS Mobile Viewer

2014-03-05 Thread Srecko Lipovsek
Hi,

I put one fix into jqueryLayerTree.aspx.
You can get it at:
https://github.com/sreckolipovsek/KaliopaMobileViewer/blob/master/jqueryLayerTree.aspx

Let me know if it helps ;)



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapgiude-OS-Mobile-Viewer-tp4941633p5107774.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] Fusion Maptips stop working

2014-03-05 Thread amorsell
So I was finally able to debug this using IE's developer tools.  It turned
out that somewhere, somehow bOverTip is getting stuck in the true state. 
When that happens, the  if (this.bOverTip || this.mouseIsDown) im mouseMove
will always evaluate to true and maptips will cease to work until the
application is reloaded entirely.  To work-around it, I changed:

if (this.bOverTip || this.mouseIsDown) {
return;
}

to

if (this.bOverTip || this.mouseIsDown) {
this.bOverTip = false;  
this.mouseIsDown = false;   
return;
}

Maybe this will help someone else.




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Fusion-Maptips-stop-working-tp5105006p5107775.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
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.

script type=text/javascript
//selection//
var themap;
var fusionInitialized = function() {
$('AppContainer').resize({forceResize: true});
   
 themap = Fusion.getWidgetById('Map');
 themap.registerForEvent(Fusion.Event.MAP_SELECTION_ON,
selectionOn);
}
var selectionOn = function()
{
 var maps = themap.getAllMaps();
 var map = maps[0];
 map.getSelection(displaySelection);
}
function displaySelection(res){
  var layer = res.getLayer(0);
 var propNames = layer.getPropertyNames();
 var msg;
 for (var j=0; jlayer.getNumElements(); j++) {
 for (var k=0; klt;propNames.length; k++)
  msg += (quot;\nquot; + propNames[k] +quot;  quot;+
layer.getElementValue(j, k));
  }
  alert(msg);
} 
//openlayers popup start//
var map, drawControls, selectControl, selectedFeature;
function onPopupClose(evt) {
selectControl.unselect(selectedFeature);
}
function onFeatureSelect(feature) {
selectedFeature = feature;
popup = new OpenLayers.Popup.FramedCloud(quot;chickenquot;, 

feature.geometry.getBounds().getCenterLonLat(),
 null,
 quot;lt;div
style='font-size:.8em'Feature:  + feature.id +brArea:  +
feature.geometry.getArea()+/div,
 null, true, onPopupClose);
feature.popup = popup;
map.addPopup(popup);
}
function onFeatureUnselect(feature) {
map.removePopup(feature.popup);
feature.popup.destroy();
feature.popup = null;
}
function init(){
map = new OpenLayers.Map('map');
var wmsLayer = new OpenLayers.Layer.WMS( OpenLayers WMS, 
http://vmap0.tiles.osgeo.org/wms/vmap0?;, {layers:
'basic'}); 

var polygonLayer = new OpenLayers.Layer.Vector(Polygon Layer);

map.addLayers([wmsLayer, polygonLayer]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.addControl(new OpenLayers.Control.MousePosition());

selectControl = new
OpenLayers.Control.SelectFeature(polygonLayer,
{onSelect: onFeatureSelect, onUnselect: onFeatureUnselect});
drawControls = {
polygon: new OpenLayers.Control.DrawFeature(polygonLayer,
OpenLayers.Handler.Polygon),
select: selectControl
};

for(var key in drawControls) {
map.addControl(drawControls[key]);
}


map.setCenter(new OpenLayers.LonLat(0, 0), 3);

}

function toggleControl(element) {
for(key in drawControls) {
var control = drawControls[key];
if(element.value == key  element.checked) {
control.activate();
} else {
control.deactivate();
}
}
}

//popup end//
//selection sript end//
var dOverviewMap;



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