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

Jackie Ng jackie.ng at aecsystems.com.au
Sun Nov 11 23:29:41 EST 2007


Do you have an "outer" xml template that you are merging this with? If so,
that's the one where you'll have to place the <ToolTip> tag under.

- Jackie


Kencana wrote:
> 
> 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#a13699632
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list