[mapguide-users] How to delete temporary layer from user session - or how to reload 1 added point whit definition in xml.

Techswami techswami at hotmail.com
Thu Jun 7 01:33:46 EDT 2007


can u share a code for adding the point on may. what kind of database are you
using .
i am using oracle with king fdo and created points but i can not make them
seletable where i can delete them or get the properties of those point.
please let me know
tony


macieksk wrote:
> 
> Hi all!
> 
> My problem is strange so i write small 	introduction.
> I make it whit  this steps.
> 
> -------
> 1 STEP. I Get points who are stored in database (user can add new points 
> on map who after moderate are showed on map).
> 
> -------
> 2 STEP. I add point to map by use:
> 
> 
> $geometryFactory = new MgGeometryFactory();
> $coordinate = $geometryFactory->CreateCoordinateXY($x,$y);
> $point = $geometryFactory->CreatePoint($coordinate);
> 
> 
> ...definition of points (symbols,x,y,image of object) are stored in XML 
> file (who is loaded by
> 
>   function CreateParcelMarkerLayer($resourceService, 
> $parcelMarkerDataResId, $sessionId))
> 
> one XML file is generate whit rules of each points who are stored in 
> database.
> 
> -------
> 3 STEP. I add this points to map (execute my script)
> 
> so i get
> 
> a) layer is created- and added to layerpane - OK!
> b) points are on the map - every have different icon and size.- OK!
> 
> 
> 
> BUT when i edit point i change it: (Rotation or X,Y - size in Meters)
> 
> THE PROBLEM IS HOW CAN I RELOAD ONLY ONE POINT WHO EDITED WAS?
> 
> 
> What i make now;
> 
> 1. i can delete this point
> 2. i add new point in this same place - BUT IT have this same definition 
> of deleted point - so when i add changes (i generate new xml file whit 
> definition of points) ex. it have another Rotation lebel... the new 
> points have old gefinition
> 
> 
> 
> What can help me:
> 
> 1. how to delete from curent user session layer whit ceated points - now 
> i can only hidden only by
> 
>   $parcelMarkerLayer->SetDisplayInLegend(false);
>   $parcelMarkerLayer->SetSelectable(false);
> 
> 2. after dalete it - i must reload in again (whit new XML definition of 
> each points) - it should by named this same.
> 
> 
> Any sugestion?
> 
> 
> Maciek
> 
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-delete-temporary-layer-from-user-session---or-how-to-reload-1-added-point-whit-definition-in-xml.-tf3064202s16610.html#a11002277
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list