Re: [mapguide-users] Fusion Map Problem

2007-08-31 Thread Paul Spencer
Hi Scott, was the problem purely a browser caching problem? I have tried to set up the ajax requests to be not cached by the browser regardless of the client configuration so I am interested to know if it works or not (I typically run my browsers with caching turned off so it is hard for

Re: [mapguide-users] Fusion Map Problem

2007-08-31 Thread Scott Wilson
Hi Paul, Thank you for your insight and suggestion. Turned out to be a browser caching issue and FDO problem. Firebug is a great plug-in, thanks for the heads up! On 8/30/07, Paul Spencer <[EMAIL PROTECTED]> wrote: > > Hi Scott, > > It sounds like it might be caching the XmlHttpRequest to load th

[mapguide-users] Fill Patterns

2007-08-31 Thread gom
Is there a method for creating new and/or modifying existing fill patterns for polygons? Thanks -- View this message in context: http://www.nabble.com/Fill-Patterns-tf4361378s16610.html#a12430507 Sent from the MapGuide Users mailing list archive at Nabble.com. _

Re: [mapguide-users] ByteReader Problem

2007-08-31 Thread Kenneth, GEOGRAF A/S
The only way around it, that I have found, is to copy/paste code like this: System.IO.MemoryStream ms = new System.IO.MemoryStream(); byte[] buf = new byte[8*1024]; int read = 1; while(read != 0) { read = mapByteRdr.Read(buf, buf.length); ms.Write(buf, 0, read); } //ms now contains the strea

RE: [mapguide-users] ByteReader Problem

2007-08-31 Thread Jonio, Dennis \(Aviation\)
This is what I use in real life ... I did not understand. I was illustrating the 8K thingee. It caught me to. string lib_layer_definition = resourceService.GetResourceContent(resId).ToString(); byte[] layerDefinition = new byte[lib_layer_definition.Length]; int byteCou

RE: [mapguide-users] GT-Theming

2007-08-31 Thread Andy Morsell
I had posted a fix to this problem some time ago but it must not have made it back into the source code. Here is the pertinent thread so you can update the code on your end. http://www.nabble.com/-Mapguide_users--General-Tasks-Sample-Code---Some-bug- fixes-tf2932000s16610.html#a8197275 Andy M

RE: [mapguide-users] ByteReader Problem

2007-08-31 Thread Campbell, Keith A
Thanks Dennis. I've tried this, but I'm only getting 8192 bytes read into the byte buffer. This seems to be the problem mentioned by Kenneth. The Read method doesn't seem to allow the start location for the read to be set, so looping until the entire content of the Resource is read into the buffe

RE: [mapguide-users] ByteReader Problem

2007-08-31 Thread Campbell, Keith A
Thanks Kenneth. This does explain what I'm seeing. I have tried MgByteSink, but am having the same problem with it. Keith From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth, GEOGRAF A/S Sent: 31 August 2007 12:44 To: MapGuide Users Mail L

RE: [mapguide-users] ByteReader Problem

2007-08-31 Thread Jonio, Dennis \(Aviation\)
... this sequence tends to work // For some reason the MgByteReader "disappears" // This seems to work long long_length = rs.GetResourceContent(resId).GetLength(); byte[] byteBuffer = new byte[long_length]; int numBytes = rs.GetResourc

[mapguide-users] Missing Coordinate Systems

2007-08-31 Thread Kenneth, GEOGRAF A/S
On multiple installations of MapGuide OS 1.2 RC2, there are no coordinate systems installed. If I access the http:///mapguide/mapagent/index.htm, choose Coordinate System and EnumerateCategories i get: Arbitrary X-Y Coordinate Systems Trying the same on the "Live Application Gallery server

Re: [mapguide-users] ByteReader Problem

2007-08-31 Thread Kenneth, GEOGRAF A/S
The "ToString()" is not implemented, and thus returns "MgByteReader", which you cannot use as an XML document. The MgByteReader is very volatile and fragile, when you try to debug it with VS. Any attempt to pass the byte reader to a function (as a parameter) will clear the stream. You cannot r

[mapguide-users] ByteReader Problem

2007-08-31 Thread Campbell, Keith A
I am trying to alter a map definition through the API and cannot get the contents of the MgByteReader in string format. Here's the code:- String mapDefinition = "Library://My Folder/Maps/My Map.MapDefinition"; MgResourceIdentifier MapResID = new MgResourceIdentifier(mapDefi

[mapguide-users] GT-Theming

2007-08-31 Thread Rahul
Hi All, I worked with GT-Dynamic Theming of Layers with only feature source in my Map,it works great but when i use the map with raster and feature sources and try to use the GT-Theming Task it use to throw exception about Raster source,can anybody tell me how to solve this problem