<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I understood from your original post that you wanted a tooltip with
different icons.<br>
If that is the case, you can just modify the tooltip.<br>
<br>
If you want different symbols displayed in the map, you must create a
theme (or display rules) in the layer.<br>
The easiest way to accomplish this, is to create an extra column, say
"symboltype".<br>
The modify the layer to show different symbols based on the
"symboltype" column.<br>
<br>
I would recomend that you create a featuresource with sample data, and
the create the layer in Studio.<br>
Once you have the layer, you can copy it to the session repo, and
modify the FeatureSource property to point to the temp source.<br>
Alternatively, you can save it to an Xml file, and use the approach
outlined in the buffer example.<br>
<pre class="moz-signature" cols="72">Regards, Kenneth, GEOGRAF A/S
</pre>
<br>
<br>
Kencana skrev:
<blockquote cite="mid:15734609.post@talk.nabble.com" type="cite">
  <pre wrap="">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-&gt;SetName("Points");
$classDefinition-&gt;SetDescription("Feature class with point data.");
$classDefinition-&gt;SetDefaultGeometryPropertyName("GEOM");

with different name and all...

Any idea?

Thank you

Regards,
Kencana Kesuma


Kenneth, GEOGRAF A/S wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">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:
    </pre>
    <blockquote type="cite">
      <pre wrap="">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
  
      </pre>
    </blockquote>
    <pre wrap="">_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>


    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
</body>
</html>