[mapguide-users] [ZS0] drawing customized markers on the fly
Kencana
bluesky_dyx at hotmail.com
Thu Feb 28 06:39:13 EST 2008
Hi Kenneth,
Thanks for your reply. I have try it but some how i can't display 2 marker
with 2 different icon in the same layer.
unless i create different class definition
$classDefinition = new MgClassDefinition();
$classDefinition->SetName("Points");
$classDefinition->SetDescription("Feature class with point data.");
$classDefinition->SetDefaultGeometryPropertyName("GEOM");
with different name and all...
Any idea?
Thank you
Regards,
Kencana Kesuma
Kenneth, GEOGRAF A/S wrote:
>
> Yes, it is possible, but a few steps are involved:
>
> 1. Create a temporary featuresource
> 2. Create a temporary layer to display the features
> 3. Insert the temporary layer into the runtime map
>
> The buffer files in the MapGuide viewer has template code for all three
> steps.
> All steps are explained in the Developer Guide (PDF version at least).
>
> The icon and url are columns in the feature source, and you can select
> them when you insert the marker.
>
> Regards, Kenneth, GEOGRAF A/S
>
>
>
> Kencana skrev:
>> Hi All,
>>
>> I've been trying to this for quite some time. Is that possible for us to
>> create multiple markers with different icon and url source (displayed
>> under
>> tooltip) in one single php function (one layer) on the fly?
>> Let's say there are 3 marker, what i want to do is i want to place 3
>> different marker on the fly.
>> I've been posting this issue in previous post but it seems there is no
>> solution given yet.
>>
>> Regards,
>> Kencana
>>
> _______________________________________________
> 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/drawing-customized-markers-on-the-fly-tp15732105s16610p15734609.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list