Re: [mapguide-users] Some changes I've made to the standard search

2011-11-11 Thread Michael Adair
Jamo, The best way to get this into the code base is to create a ticket for it on the Fusion trac system so that we don't lose track of it: http://trac.osgeo.org/fusion/ Thanks! Mike On 10/11/2011 8:07 PM, Jamo wrote: Hey guys/girls, If anyone is interested I've modified the existing fusion

Re: [mapguide-users] Re: Fusion Error: WARNING: Exception Occured in AJAX Callback.

2011-11-10 Thread Michael Adair
On 10/11/2011 2:43 PM, soudemans wrote: Thanks for your reply mike, Michael Adair wrote: Some things to try: 1 - send me the WKT for your projection and I'll make sure that Proj4js is parsing it correctly. 2 - not sure if you get Fusion 2.2 in that release but in any case you can try

Re: [mapguide-users] Fusion Error: WARNING: Exception Occured in AJAX Callback.

2011-11-10 Thread Michael Adair
I can't answer #3 but for #1 and #2, no I've never seen that error but being able to handle that projection is not an issue. Parsing the projection Well Known Text (WKT) projection code might be, but that can be fixed. The 'WKT' in your screen grab is different than the 'WKT' that Maestro use

Re: [mapguide-users] Digitize Circle and get xml selection in Fusion

2011-10-19 Thread Michael Adair
For making a circle handler, just copy the Rectangle handler (which uses a Regular Polygon handler) and increase the number of sides to something like 40. For the selections, register a Fusion.Event.MAP_SELECTION_ON event listener on the map object and then you can use the map.getSelection() me

Re: [mapguide-users] OpenLayers with MapGuide

2011-10-18 Thread Michael Adair
The useOverlay flag is used to distinguish 2 different ways of requesting a map image: - false: it uses the MG GETMAPIMAGE api to request the map image - true: it uses the MG GETDYNAMICOVERLAYIMAGE to request the map image, but you need to set the extent and visible layers of the map first using

Re: [mapguide-users] Re: Add Mapguide layer to OpenLayers

2011-10-03 Thread Michael Adair
For untiled layers you can specify a mapName and session, or else a mapDefinition and locale. See http://dev.openlayers.org/apidocs/files/OpenLayers/Layer/MapGuide-js.html#OpenLayers.Layer.MapGuide.OpenLayers.Layer.MapGuide for more guidance. Mike On 03/10/2011 12:41 PM, Greg wrote: OK. I

Re: [mapguide-users] RE: Fusion Task Pane without session variable

2011-09-21 Thread Michael Adair
If you are doing development work, it is highly recommended that you use the fusion.js file (not a single file version) which pulls in all required files based on the contents of the AppDef, also so that you can edit the original files and not the assembled single file version. Once your site

Re: [mapguide-users] Re: Fusion layout is blank

2011-09-19 Thread Michael Adair
This may or may not be the issue with the missing layer but the MG definition of "PseudoMercator" is not the same as the "big 3/Google mercator/spherical mercator" because the one listed below is not a sphere - for it to be spherical, the 3rd param in the SPHEROID text must be a 0 (zero). See

Re: [mapguide-users] Fusion - add MouseScroll Event Handler

2011-07-22 Thread Michael Adair
Fusion already includes the mouse wheel handler, see the file fusion/lib/Map.js. and something with mouse event handling would be best created as a custom widget. An example of mouse event handling could be the widgets/Select.js. It would be best to understand how OpenLayers event handling wo

Re: [mapguide-users] Re: Fusion Viewer Error

2011-06-10 Thread Michael Adair
Jackie has that one correct I think. Your WKT is returning units of "Foot_US" and neither Fusion no Proj4js has any knowledge of this unit name. If you can get the units to come out as just "Feet" your problem should go away. IMO this is why I'm not a fan of "WKT" because it's not so "WK" af

Re: [mapguide-users] Re: Buffer in FUSION

2011-05-30 Thread Michael Adair
Gordon, Can you put that into a ticket please so we don't loose track of it? (http://trac.osgeo.org/fusion/) Thanks, Mike On 30/05/2011 12:07 PM, GordonL wrote: OMG - the Fusion code does not take into account the Case-Sensitive nature of Linux. I changed the line 415 of Buffer.php from

Re: [mapguide-users] Re: Mapguide maps using openlayers

2011-04-29 Thread Michael Adair
Looks like your OpenLayers build doesn't include the TouchNavigation control - "OpenLayers.Control.TouchNavigation is not a constructor" is the error message. You'll have to rebuild OpenLayers from SVN trunk and include that control. There is a 'mobile.cfg' build file in OL that includes it,

Re: [mapguide-users] Re: fusionSF MapType Error

2011-04-27 Thread Michael Adair
If I recall correctly, the "google.maps.MapTypeId" property was introduced in Google maps v3, so maybe Maestro is including the string for v2? I'm not sure because I can't see the string you intended to include below. Mike On 27/04/2011 12:27 PM, Jzsu wrote: I've included the Google Maps AP

Re: [mapguide-users] fusionSF MapType Error

2011-04-27 Thread Michael Adair
Sounds like you need to include the Google Maps API. Insert this line before including the fusionSF file in your template; src='http://maps.google.com/maps/api/js?sensor=false'> Mike On 27/04/2011 9:04 AM, Jzsu

Re: [mapguide-users] Re: Syntax to set Active layer in Mapguide via Fusion

The get/setActiveLayer methods are in the Map object (ie. the Fusion.getWidgetById('map') object) since the active layer can be set to any of the layers (ie. more than just aMaps[0]) Mike On 21/02/2011 6:31 AM, BTenBroeck wrote: No, I'm trying to set a layer active, and then tell the selection

Re: [mapguide-users] Re: set active task pane tab in a widget (Fusion)

In that case I'm pretty sure you should be able to use: tabbox1.tabset.setActiveTab(tab1) to make the TaskPane tab visible. Mike On 13/01/2011 2:04 AM, Jose Cerrejon wrote: Sorry Mike, It's a theme based on the turkeyyellow mapguide. It's a Jx.TabBox: tabbox1 = new Jx.TabBox({parent: split

Re: [mapguide-users] set active task pane tab in a widget (Fusion)

Jose, I'm not sure how your layout is constructed but if the TaskPane is a Jx.Panel and part of a Jx.PanelSet, you can use: panel.maximize() or panelSet.maximizePanel(panel) Mike On 12/01/2011 12:04 PM, Jose Cerrejon wrote: I want to activate the task pane tab from a widget if you have sel

Re: [mapguide-users] Re: Generate a pdf view of the current map

If this is a Fusion issue, can I get one of you to create a ticket with this info, or even better a patch, on the Fusion Trac system to make sure this doesn't get lost? http://trac.osgeo.org/fusion/ Mike On 16/12/2010 4:41 PM, Steve G wrote: I didn't need luck, just your help!!! Your change

Re: [mapguide-users] Accessing Fusion commands from parent window

In Fusion trunk, in MapguideViewerApi.js , the reference to the Fusion window is coded like so: /* locate the Fusion window */ function GetFusionWindow() { var curWindow = window; while (!curWindow.Fusion) { if (curWindow.parent && curWindow != curWindow.parent) { cur

Re: [mapguide-users] Re: RE:

Gordon, I had a quick look and I think everything is working correctly from the Fusion point of view. It would seem that the lines in GetSelectionProperties.php: $selection = new MgSelection($map); if($selText != "") { $selection->FromXml($selText); } is

Re: [mapguide-users] Re: RE: Selected Object Not Found

Is there a URL we can have a look at this? What are the responses from Query.php and Selection.php (from the console). Mike On 23/11/2010 9:21 AM, GordonL wrote: Just to Follow Up. The data source is a SQL Server 2008. There is a Key assigned and the features select (highlight blue) but th