Groups > Microsoft > MapPoint > Re: Pushpin visibility




Pushpin visibility

Pushpin visibility
Mon, 17 Mar 2008 10:00:01 -070
Hi,

I'm using the Mappoint 2006 ActiveX control in an MFC application.  I am 
plotting the route of a vehicle on a map using lines for the route and a 
pushpin for the vehicle at the head of the route.  The lines of the route are 
showing through the pushpin icon and I'd like to find a way for the pushpin 
icon to be fully visible over the line.

I've tried programmatically selecting the pushpin.  This produces the 
desired visual effect.  However, I don't want to have to select the pushpin 
because I want to allow user interaction.

I've tried changing the z-order position of the route lines.  The only 
z-order position that puts the lines behind the pushpin is 
"geoSendBehindRoads" which is counter productive for my application.

Does anyone know of a way to make a pushpin appear selected without actually 
selecting it?  Or does anyone know of a way to position a shape behind 
pushpins but in front of roads?  Any other suggestions would be appreciated 
as well.

Thanks,
Post Reply
Re: Pushpin visibility
Tue, 18 Mar 2008 16:24:16 +010
Hi,

You could make the lines shorter, so that them stay away an amount of 
pixels from the pushpin. Not very easy because you have to calculate the 
direction of the lines, the amount of pixels which is depending on the 
zoom factor and calculate the new end Location of the line. but sure it 
is possible.

-- 
rgds, Wilfried [MapPoint MVP]
http://www.mestdagh.biz

Nunezilla wrote:
> Hi,
> 
> I'm using the Mappoint 2006 ActiveX control in an MFC application.  I am 
> plotting the route of a vehicle on a map using lines for the route and a 
> pushpin for the vehicle at the head of the route.  The lines of the route
are 
> showing through the pushpin icon and I'd like to find a way for the pushpin

> icon to be fully visible over the line.
> 
> I've tried programmatically selecting the pushpin.  This produces the 
> desired visual effect.  However, I don't want to have to select the pushpin

> because I want to allow user interaction.
> 
> I've tried changing the z-order position of the route lines.  The only 
> z-order position that puts the lines behind the pushpin is 
> "geoSendBehindRoads" which is counter productive for my
application.
> 
> Does anyone know of a way to make a pushpin appear selected without
actually 
> selecting it?  Or does anyone know of a way to position a shape behind 
> pushpins but in front of roads?  Any other suggestions would be appreciated

> as well.
> 
> Thanks,
Post Reply
about | contact