Re: [mapguide-users] Event that captures mouse action

2009-11-03 Thread Kenneth Skovhede, GEOGRAF A/S
There is a function called "OnMapLoading" which you can hijack like this: //Keep a reference to the original function GetMapFrame().original_OnMapLoading = GetMapFrame().OnMapLoading; //Assign a new function GetMapFrame().OnMapLoading = function(){ try { //Place more meaningfull

Re: [mapguide-users] Creating and adding layers

2009-11-03 Thread Kenneth Skovhede, GEOGRAF A/S
There is a short (incomplete) guide here that explains the procedure from a users viewpoint: http://trac.osgeo.org/mapguide/wiki/maestro/UserGuide If you have MapGuide Enterprise, you can get Studio for free, which has a manual in the "Help" menu. If you need to create data as well, you need

[mapguide-users] Selection & Opening Map In Fusion

2009-11-03 Thread mohan siraskar
Hello , I am creating application in fusion. I am using C# .NET coding for opening the map and making selection but i gets error message : "Resource was not found: Session:8358cac2---8000-001d7d21b205_en_7F010AF20AF10AF0//MRSAC_Map.Map" ,so which is the way to Open the map by usi

[mapguide-users] Creating and adding layers

2009-11-03 Thread oshan
Hi I want to know how to create layers? Say that you have a map and you want to create layers for political divisions. How would you go about doing this? I ask this before but I didn't get any answer. My apologies if its a stupic question! Since I don't really have any good vectored based maps

[mapguide-users] Event that captures mouse action

2009-11-03 Thread Langen, Gido
Does anyone know how to capture a mouse click on the map? I want to do some scale dependent processing and want to capture the scale after zooming in/out. I need to know the scale right after the zoom in/out, before the map is redrawn. Thanks for any insight, Gido ___

[mapguide-users] Simple .NET Function Hello World!

2009-11-03 Thread Rock Beans
That worked thanks! Here is a great exanple to help others that are not using the viewer which must do this for you. public string DoMapGuide() { string mapName = "Sheboygan"; string resourceLocation = "Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition"; string web

Re: [mapguide-users] Porting .net application to Redhat Enterprise 5.0 box

2009-11-03 Thread Kenneth Skovhede, GEOGRAF A/S
I would expect a rough journey :) .Net on Apache is not supported by MapGuide, so you would need to set up everything by hand. Instead, I would recommend installing the PHP version of the AJAX viewer, which works with Apache. This installation should have all the .so files that match the .dll

Re: [mapguide-users] .NET Basic Example Issues (Hello World?)

2009-11-03 Thread Kenneth Skovhede, GEOGRAF A/S
That is an odd issue. What happens is that you create a runtime map (MgMap.Create). Internally that means that the MapDefinition xml is converted to a binary format, known as a "runtime map". For some reason, you cannot pass the resource id for the runtime map to the MgMap.Open or MgMap.Creat