Re: [mapguide-users] Runtime map problem

2008-12-02 Thread Kenneth Skovhede, GEOGRAF A/S
Instead of re-posting the original question, could you try to explain what parts of my previous reply that are unclear or wrong? http://www.nabble.com/How-to-Load-Runtime-map-in-mapviewerajax-to20704038.html#a20769349 Regards, Kenneth Skovhede, GEOGRAF A/S padmini godavarthi skrev: Hi ,

Re: [mapguide-users] Permanent changes in data - Solved

2008-12-02 Thread Stefan Dalakov
I solved it. The problem was that MG Studio shows that the ID field is of type Double. In the DBF file (as this is a shp Feature source) the ID field is declared as N,11,0 So I substituted *MgDoubleProperty *with* **MgInt32Property* and it works now. Stefan Dalakov Kenneth Skovhede, GEOGRAF

Re: [mapguide-users] Runtime map problem

2008-12-02 Thread Kenneth Skovhede, GEOGRAF A/S
To build a map, you must have all the components: 1. FeatureSource, references data 2. LayerDefinition, references a FeatureSource 3. MapDefinition, references multiple LayerDefinitions 4. WebLayout, references a MapDefinition All these items must be in a repository (either Library or Session),

Re: [mapguide-users] Permanent changes in data

2008-12-02 Thread Zac Spitzer
I just bumped that bug to critical after some reflection as that is a serious potential dataloss bug IMHO On Tue, Dec 2, 2008 at 8:08 AM, Kenneth Skovhede, GEOGRAF A/S [EMAIL PROTECTED] wrote: You could be affected by this bug: http://trac.osgeo.org/mapguide/ticket/649 Otherwise, try to post

Re: [mapguide-users] Runtime map problem

2008-12-02 Thread Kenneth Skovhede, GEOGRAF A/S
Its a function that creates a GUID (Globally Unique ID). It creates a string like xcsdfasd-sdfasdf-dsdfasf but ensures that it is mathematically certain that you will not get duplicates, even if you call it multiple times on multiple machines. For the example I sent, you can replace it with any

Re: [mapguide-users] XML Parser error for Feature Sources

2008-12-02 Thread cagray
Thats works great. I had written a web app which allows a user to completely customise the appearances of layers. Behind the scenes it just edits the xml but I suspect the MaestroAPI could do this all for me without me touching the xml. I need to look into it more as I need to be able to save to

Re: [mapguide-users] Runtime map problem

2008-12-02 Thread padmini godavarthi
Hi, Thanks for u r reply actually i wrote the code as Dim host As New Uri(http://localhost/mapguide/mapagent/mapagent.fcgi;) Dim conn As New HttpServerConnection(host, Administrator, admin, en, True) Dim res As New ResourceIdentifier(Filebased data/Maps/mapdata,

[mapguide-users] Patch to change the active tool Cursor in ajax viewer

2008-12-02 Thread Bruno Scott
Here is a small patch to make the map cursor reflect the active toolbar action. function UpdateMapActionCursor(action) { var strCursor = auto; switch(action) { case 1: /*pan*/strCursor = url('../stdicons/icon_pan.cur'), pointer;break; case 9: /*Zoom window*/

Re: [mapguide-users] Permanent changes in data

2008-12-02 Thread Stefan Dalakov
It is something stupid, but I cannot spot it... Everything works if I omit the bold part of the code : function MakeLine($name, $x0, $y0 , $x1, $y1) { $propertyCollection = new MgPropertyCollection(); *$cntr = (double) 11.0 ; $idProperty = new MgDoubleProperty(ID,$cntr);

RE: [mapguide-users] XML Parser error for Feature Sources

2008-12-02 Thread Greenhough, Jamie
Thanks for the tip about Maestro chm file. I had the same problems until I 'Unblocked' the file just now.! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of cagray Sent: Tuesday, December 02, 2008 1:29 AM To: mapguide-users@lists.osgeo.org Subject: Re:

Re: [mapguide-users] Runtime map problem

2008-12-02 Thread Kenneth Skovhede, GEOGRAF A/S
I forgot to save the weblayout in the code below :( Updated version is: 'Setup connection Dim host As New Uri(http://localhost/mapguide/mapagent/mapagent.fcgi;) Dim conn As New HttpServerConnection(host, Administrator, admin, en, True) 'You have to change the string below to point at a valid

Re: [mapguide-users] XML Parser error for Feature Sources

2008-12-02 Thread Kenneth Skovhede, GEOGRAF A/S
I have now added a small note on the page hinting the solution. Regards, Kenneth Skovhede, GEOGRAF A/S Greenhough, Jamie skrev: Thanks for the tip about Maestro chm file. I had the same problems until I 'Unblocked' the file just now.! -Original Message- From: [EMAIL PROTECTED]

[mapguide-users] Runtime map problem

2008-12-02 Thread padmini godavarthi
Hi , iam using mapguide open source 2.0( with .Net 2.0 + IIS 5.1) Iam using dotnet viewer sample while running the application i observed that the layout path given in the application. as String webLayout = Library://Samples/Sheboygan/Layouts/SheboyganAspTiled.WebLayout; it works but now i

Re: [mapguide-users] Uploading Shapefile to Map for Immediate DisplayProblem

2008-12-02 Thread Bob Basques
We've attacked this problem here a little differently. The idea was to set up a location (per data custodian) to overwrite a previously set up and configured SHP file for web publication. Basically we go to the trouble of setting up things ahead of time for stylization and symbology and once

RE: [mapguide-users] Uploading Shapefile to Map for Immediate DisplayProblem

2008-12-02 Thread Greenhough, Jamie
Hey Kevin, I checked out your site. I am working on very similar functionality. My users need to be able to ADD, DELETE, and EDIT (stylize) layers. I used the Maestro API to implement the ADD functionality. See one of my previous messages for the code snippet here: