[mapguide-users] Re: Fail To Display Marker Using Mapguide 2.0.2
(Window Platform)
bongtk
bongtk at sains.com.my
Wed Oct 22 03:21:09 EDT 2008
dear all,
goodday!
i had encountered problem of creating and displaying the marker after
creating using the code below using mgos 2.0:
$name = $featureReader->GetString('NAME');
$byteReader = $featureReader->GetGeometry('GEOMETRY');
$geometry = $geometryReaderWriter->Read($byteReader);
$point = $geometry->GetCentroid();
$x = $point->GetCoordinate()->GetX();
$y = $point->GetCoordinate()->GetY();
// Create an insert command for this parcel.
$properties = new MgPropertyCollection();
$properties->Add(new MgStringProperty('Owner', $name));
$properties->Add(new MgGeometryProperty('Location',
$geometryReaderWriter->Write($point)));
$parcelMarkerCommands->Add(new
MgInsertFeatures('ParcelMarker', $properties));
i'd used the same code to display the marker using mgos 1.1 and it works
well. can any of you give some advice?
appreciate, thanz a lot.
regards, bongtk
More information about the mapguide-users
mailing list