[udig-devel] Adding images or icons on a layer and detect them
Jody Garnett
jgarnett at refractions.net
Tue May 6 09:42:35 PDT 2008
Morning Frederic, how to deal with icons on a map is about our 3rd most
common request (the other two we have captured as tutorials; how to make
a tool and how to make an application).
You are already on the right track using a MapGraphic, using a tools to
interact with the mouse is the way to go. I am not sure off the top of
my head how to add to the existing background tools; the answer may be
that "we don't build it until someone asks". I imagine we need an
extension point to slurp up background tools if one is not already
available.
Can you tell me how the initial uDig background tools are acquired?
Jody
Frederic Renard wrote:
>
> Hi all,
>
>
>
> I'm new to RCP and uDIG.
>
> I want to add images or icons on a layer (dynamicaly), and when the
> mouse fly over this image (or icon) I want to display informations
> about this icon.
>
> I already created a extention /to
> net.refractions.udig.mapgraphics.mapgraphic/ plugin who received data
> dynamicaly and draw a circle at a position.
>
> I add a /backgroundtool/ to/ net.refractions.udig.project.ui.tool/.
> This backgroundtool is responsible to get mouse position , check if
> this is a particular position (exactely icon position) , and if it
> is, display a message.
>
> But my backgroundtool 'overwrite' the initial uDig backgroundtools
> (/net.refractions.udig.tools.internal.ScrollZoom ,
> net.refractions.udig.tools.internal.CursorPosition and
> net.refractions.udig.tools.internal.PanMiddleMouse/), .. and don't work.
>
>
>
> My questions are :
>
> - Is it possible to add a background tool to existing ones ? ( and if
> the response is 'yes': how? )
>
> - is it the right method to dynamicaly extract mouse position and
> doing some actions ?
>
>
>
> Best regards,
>
>
>
> Frederick.
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>
More information about the udig-devel
mailing list