The duplicate object is most likely caused by the line:
map.GetLayers().Add(listLayer)
If there is a possibility of this code path being executed more than once,
you should check for the existence of the layer (by name) before adding it
to the map.
- Jackie
Jamo wrote:
Anyone able to tell
Also, to clear up any confusion:
The MgMap object is the runtime map.
The MgLayer objects are layers attached to the runtime map (runtime layers).
new MgLayer does not create anything (other than the object itself).
You reference a LayerDefinition in an MgLayer, you do not create the layer.
You
Do you get any javascript errors?
Are your x,y and scale values correct in the javascript?
Regards, Kenneth Skovhede, GEOGRAF A/S
padmini godavarthi skrev:
Hi,
iam using mapguide opensource 2.0 (with .net 2.0 +IIS 5.1) on win xp
i have a problem with zom toview
Where can I find code examples regarding filter on the run-time layer?
I post my code used:
String whereClause = FG = '3';
String layerNameDaFiltrare = par10;
MgFeatureQueryOptions queryOptions = new MgFeatureQueryOptions();
queryOptions.SetFilter(whereClause);
MgLayer layer
hi, i trying to make selection on the map and zoom to selection...it seem the
layer had been selected, but in the properties pane show that none
selected, in the status bar show 1 feature selected,i'm using the
JavaScript body onload to SetSelectionXml to make selection on the layer,
and
Hi all
I ran into a problem with selection of objects: using a column-type Int64 as
primary key, the objects are only marked as selected on the map (blue) if
the value of the primary key column are smaller than 2147483648 (in the
range of Int32) - otherwise, only the attributes are shown in the
hello! i drw polygones in map and display it i want know how can i get them
transparent for allowing me see another layers, thanks on advance, i thi,k
that this will be modification in xml file where i define layer containing
polygone but how, if you have some idea thanks on advance
2009/5/20
hi i want get coordinates of the point inserted in map how can i proceed?
thanks on advance
2009/5/25 saloua wakrim wakrimsaloua.wak...@gmail.com
hello! i drw polygones in map and display it i want know how can i get them
transparent for allowing me see another layers, thanks on advance, i
Try this instead:
MgLayers.Filter = FG = '3';
map.Save();
Regards, Kenneth Skovhede, GEOGRAF A/S
vittorio skrev:
Where can I find code examples regarding filter on the run-time layer?
I post my code used:
String whereClause = FG = '3';
String layerNameDaFiltrare = par10;
MgLayers.Filter? I dont found this in the MapGuide Java API
Da: Kenneth Skovhede, GEOGRAF A/S (via Nabble)
[mailto:ml-user+64672-363962...@n2.nabble.com]
Inviato: lunedì 25 maggio 2009 12.38
A: vittorio
Oggetto: Re: [mapguide-users] Filter features in the viewer
Try this instead:
Arh yes, my mistake.
You need to:
1) Create a copy of the LayerDefinition Xml
2) Set the filter property
3) Save the LayerDefinition xml as a session based resource
4) Call SetLayerDefinition to point to the session based copy
5) Save the MgMap instance
(A bit more difficult than just setting
Hi!
I have poblem using MapGuide Measure Tool with MapGuide Server 2.0.2.
Every time after using this a get an error in error log file:
2009-05-25T11:51:45 Ajax Viewer192.168.0.17Administrator
Error: Resource was not found:
Nobody can help me?
gatopardo wrote:
How could I get the Tooltip on a point using MapGuide Web API?
Example:
I have generated an image using MgRenderingService.RenderMap, and after
that I want to get the tooltip on a point of this image, using the
coordinates on image pixels or
The operation is called QUERYMAPFEATURES, but I can't seem
to find it as a function from the Web API.
You can see it in use if you look in the file:
C:\program
files\MapGuideOpenSource2.0\WebServerExtensions\www\viewerfiles\ajaxmappane.templ
line 2555.
You may also want to read this thread:
I'm pretty sure that QUERYMAPFEATURES ends up calling the QueryFeatures method
on the MgRenderingService. You'll need to create a geometry object that
corresponds to the point you're clicking on. It is best to make it a small
square rather than a single point, in order for the spatial filter to
When trying to use the 1.0.9 build of Maestro I have encountered 2 problems:
1) Maestro bails when the repository has foreign characters in any of the
object (folder) names
2) Maestro seemingly can't handle large repository trees (although the
error I encountered may be related to
1) I get this problem too. I have folders that contain dots and Maestro will
just choke when it encounters one.
2) I do believe that this has been addressed:
http://trac.osgeo.org/mapguide/ticket/811
- Jackie
Dave Wilson wrote:
When trying to use the 1.0.9 build of Maestro I have
Hi,
We are pleased to announce that the MapGuide Open Source project team has made
MapGuide Open Source 2.1 beta available.
Release notes: http://trac.osgeo.org/mapguide/wiki/Release/2.1/Notes
Downloads: http://mapguide.osgeo.org/download/releases/2.1.0
Documentation: Please continue to use the
18 matches
Mail list logo