Thanks for your help. I
was able to get it working correctly with the ZoomToPoint call, which is what I
was trying to do anyway.
It does refresh the map
and turns the layer on, but Kenneth is correct that it is not shown as on in the
legend and tool tips are affected. I am going to submit another
internal on it since Kenneth’s seems to have disappeared.
Thanks
again,
Brian
Berdel
McMahon Associates,
Inc.
p:
215.283.9444
www.mcmtrans.com
From:
mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org] On Behalf Of Andy Morsell
Sent: Monday, May 21, 2007 5:55
PM
To: 'MapGuide Users Mail
List'
Subject: RE:
[mapguide-users] Navigation Example .NET
The JavaScript call
should be GetMapFrame().Refresh();
Andy
From:
mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org] On Behalf Of Berdel, Brian
Sent: Monday, May 21, 2007 2:43
PM
To: MapGuide Users Mail
List
Subject: RE:
[mapguide-users] Navigation Example .NET
Why do I keep
getting?
Object doesn't support
this property or method when referring to
parent.GetMapFrame().Refresh;
I have this in an
onload function of the page in JavaScript.
Brian
Berdel
McMahon Associates,
Inc.
p:
215.283.9444
www.mcmtrans.com
From:
mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org] On Behalf Of Kenneth
Sent: Monday, May 21, 2007 2:33
PM
To:
Subject: Re: [mapguide-users] Navigation
Example .NET
I can't find it either
:D...
Here is the text of my
post:
<snip>
When using the server API for altering layer visibility,
a call to the
GetMapFrame().Refresh() is not sufficient to refresh the
legend.
Pseudocode:
$map.Open(...);
$map.Layers('layername').setVisibility(true);
$map.Save();
Calling the
GetMapFrame().Refresh() after this, will update the map to
display the new layer.
However the Legend does not reflect
this change.
The problem can be
solved with two changes:
1. In
ajaxmappane.templ, the Refresh() function should also call
ResetVisLayers()
2. In legendctrl.templ, the Refresh
call should be changed, so it does
not call with the summary parameter
The problem only occurs in the
When retrieving the legend script,
using the summary parameter, the
visibility does not change.
Removing the summary parameter is a bad fix, as it also
disables the
optimizations that the
summary parameter gives.
If the
above mentioned fix 1, is not implemented, a lot of features will
fail after modifying the map.
For instance tooltips for the
layers will not work.
I think
this is a problem with a design flaw in the way the viewer is
implemented.
Keeping state data solely on the
client is a very bad idea.
This
happens with layerstates and current zoom in the
the Selection in the DWF viewer.
To allow modifications to the
map from the server API, all data should
be written to the server.
To provide caching the client should fetch a change list,
rather than
sporadically caching
data.
Using a sequence number, the
client can skip multiple update cycles, and
still be synced correctly.
Using a generic format would allow the DWF and
exactly the same data, thus
reducing duplicate code.
</snip>
Regards, Kenneth, GEOGRAF A/S
Berdel, Brian wrote:
Thanks,
From: mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org]
On Behalf Of Kenneth
Sent: Monday, May 21, 2007 9:58
AM
To:
Subject: Re: [mapguide-users] Navigation
Example .NET
The zoom will invalidate the
map, and is the same as a refresh.
I haven't tested it, but I don't think a
scale change (eg. zoom) will refresh the visible layer cache, but it
might.
Regards, Kenneth, GEOGRAF A/S
Andy Morsell wrote:
But in the example
below, where the layer is being set to visible right before a zoom, the zoom
should take care of the map refresh and the layer should appear on the
subsequent map. Or, is this not the
case?
Andy
From: mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org]
On Behalf Of Kenneth
Sent: Sunday, May 20, 2007 11:18
AM
To:
Subject: Re: [mapguide-users] Navigation
Example .NET
If you modify the layer
visibility, using serverside code, it will not work correctly with the
The problem is that the
The symptoms will be that no tooltip is displayed for the layer,
and the layer never shows up in the legend.
I've posted this bug on the
mapguide-internals list, and a
workaround.
Regards. Kenneth, GEOGRAF A/S
Berdel, Brian wrote:
From: mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org]
On Behalf Of Andy
Morsell
Sent: Friday, May 18,
2007 12:39 PM
To:
'
Subject: RE: [mapguide-users] Navigation
Example .NET
From: mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org]
On Behalf Of Berdel,
Brian
Sent: Friday, May 18,
2007 9:28 AM
To:
Subject: RE: [mapguide-users] Navigation
Example .NET
From: mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org]
On Behalf Of Andy
Morsell
Sent: Friday, May 18,
2007 11:40 AM
To:
'
Subject: RE: [mapguide-users] Navigation
Example .NET
Spatial Integrators,
Inc.
http://www.SpatialGIS.com
From: mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org]
On Behalf Of Berdel,
Brian
Sent: Friday, May 18,
2007 8:00 AM
To:
Subject: [mapguide-users] Navigation
Example .NET
_______________________________________________
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users