[mapguide-users] Adding marker on the fly with tooltip

Kencana bluesky_dyx at hotmail.com
Sun Nov 11 23:00:44 EST 2007


Hi Jacky,

Thank you for the reply.
Anyway I can't find the geometry tag under the marksymbol.templ.
this is what i have in markersymbol.templ

<W2D>
                  <Unit>Points</Unit>
                  <SizeContext>DeviceUnits</SizeContext>
                  <SizeX>%s</SizeX>
                  <SizeY>%s</SizeY>		  
                  <Rotation>0</Rotation>
                  <MaintainAspect>true</MaintainAspect>
                  <W2DSymbol>
                    <ResourceId>%s</ResourceId>
                    <LibraryItemName>%s</LibraryItemName>
                  </W2DSymbol>
                  <FillColor>%s</FillColor>		 
                  <LineColor>FF000000</LineColor>
                  <TextColor>FF000000</TextColor>
		  <ToolTip>test 123</ToolTip>
                </W2D>


I did make some changes to the LayerDefinition-1.0.0.xsd and the error
message has gone. however,
i can't see the tool tip when i mouse over the marker.

any idea of this?
anyway i am still using mapguide opensource 1.1.0.
because the new version (1.2) the marker is not shown on the map.Have
mentioned about this issue in this forum, but so far I havent see any
solution for it yet.

Thank you

Regards,
Kencana


Jackie Ng wrote:
> 
> Did you put the tooltip tag in the right location? The <ToolTip> tag
> usually follows the <Geometry> tag in a layer definition document.
> 
> - Jackie
> 
> 
> Kencana wrote:
>> 
>> Hi,
>> 
>> Can we modify the markersymbol.templ file to add <ToolTip></ToolTip> tag
>> into it?
>> I have try to add it but it returns me such error message.
>> ERROR: The new XML document is invalid. 
>> .PHP Warning: Element W2D content check failure in C:\Program
>> Files\MapGuideOpenSource\WebServerExtensions\www\CAN MAP
>> Files\layer_functions.php on line 27 PHP Fatal error: Call to a member
>> function SetGroup() on a non-object in C:\Program
>> Files\MapGuideOpenSource\WebServerExtensions\www\CAN MAP
>> Files\layer_functions.php on line 66 
>> 
>> any idea on how i can make it work?
>> 
>> Thank you
>> 
>> Regards,
>> Kencana Kesuma
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Adding-marker-on-the-fly-with-tooltip-tf4788633s16610.html#a13699407
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list