<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
It is very trivial to convert the sample to C#... in fact I just did:<br>
<a class="moz-txt-link-freetext" href="http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI/samples/CustomizedZoomWithWebLayout">http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI/samples/CustomizedZoomWithWebLayout</a><br>
<br>
If you just want to understand what happens, there should be a more
verbose message in the error.log:<br>
C:\Program Files\MapGuideOpenSource2.0\Server\logs\error.log<br>
<br>
Also, are you certain that the pst_map is a valid map identifier, and
that str_NewMapDefinition is a valid resource identifier?<br>
<br>
I'm guessing that pst_map is a string like:
"Library://map.MapDefinition", so your str_NewMapDefinition becomes:<br>
Session:<sessionid>//Library://map.MapDefinition.MapDefinition<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
euskalmap skrev:
<blockquote cite="mid:1236848838907-2466236.post@n2.nabble.com"
type="cite">
<pre wrap="">Hi,
It do not run with the parameter false in the instruction UTF8Encoding utf8
= new UTF8Encoding(false);
In your link sample(
<a class="moz-txt-link-freetext" href="http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI/samples/CustomizedZoomWithWebLayout">http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI/samples/CustomizedZoomWithWebLayout</a>
<a class="moz-txt-link-freetext" href="http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI/samples/CustomizedZoomWithWebLayout">http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI/samples/CustomizedZoomWithWebLayout</a>
), it is a vb code with the mapguide maetro api; i will not change all my
code because i use c# with mapguide api; i want to undestand why it do not
run; i use the same method to change the filter in layers and it run very
well ! what's append in my code?
thanks
Kenneth Skovhede, GEOGRAF A/S wrote:
</pre>
<blockquote type="cite">
<pre wrap="">You need to create the UTF8Encoding object with the parameter "false"
(meaning disable BOM).
A slightly easier way to do this:
<a class="moz-txt-link-freetext" href="http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI/samples/CustomizedZoomWithWebLayout">http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI/samples/CustomizedZoomWithWebLayout</a>
Regards, Kenneth Skovhede, GEOGRAF A/S
euskalmap skrev:
</pre>
<blockquote type="cite">
<pre wrap="">Hi
I provide the end user with a link to my special page (see the code1). In
that page i redirect to the MapGuide viewer files (Response.Redirect).
code1:
<a class="moz-txt-link-freetext" href="http://n2.nabble.com/file/n2462320/sample1.jpg">http://n2.nabble.com/file/n2462320/sample1.jpg</a>
The fonction SetLayout Map modify the mapdefinition in my layout. See
image
here :
<a class="moz-txt-link-freetext" href="http://n2.nabble.com/file/n2462320/sample2.jpg">http://n2.nabble.com/file/n2462320/sample2.jpg</a>
The problem : the layout is not modify and i have this message : An
exception occurred in the XML parser.
Have you an idea ?
Thanks
</pre>
</blockquote>
<pre wrap="">_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
</body>
</html>