MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Pushpin visibility / z-order

This is a discussion on Pushpin visibility / z-order within the Development forums, part of the MapPoint 2006/2009 Discussion category; Hi, I posted this question in the microsoft mappoint newsgroups before I discovered this forum, so apologies in advance for ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion > Development

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack (2) Thread Tools Display Modes
  2 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 03-17-2008
Junior Member
White Belt
 
Join Date: Mar 2008
Posts: 5
Pushpin visibility / z-order

Hi,

I posted this question in the microsoft mappoint newsgroups before I discovered this forum, so apologies in advance for the double post for those who frequent both (I'll stick to the forum from now on).

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,
Nunezilla
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 03-17-2008
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,382
Blog Entries: 1
Re: Pushpin visibility / z-order

As I remember, the "zOrder" of the Pushpins is always considered the same as the road or cartographic / map layer.. this is the problem you are having.

You can't change the zOrder of a Pushpin to be in front of a shape that is in front of the roads.

This might sound messy, but I wonder if you can use a textbox instead of a Pushpin.. see attached.

Eric
Attached Images
File Type: gif veh.gif (27.9 KB, 9 views)
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 03-17-2008
Junior Member
White Belt
 
Join Date: Mar 2008
Posts: 5
Re: Pushpin visibility / z-order

Hi Eric,

Thanks for the suggestion. Unfortunately, the icons are important. I'm using the standard arrow icons to indicate the direction of the vehicle so I don't think the textbox idea will work for me either.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 03-17-2008
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,382
Blog Entries: 1
Re: Pushpin visibility / z-order

I'm sure these suggestion aren't ideal either, but you could try a thicker route line and put it under the roads, or a bigger arrow.

Eric
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 03-17-2008
Junior Member
White Belt
 
Join Date: Mar 2008
Posts: 5
Re: Pushpin visibility / z-order

Hi Eric,

Thanks again for the suggestions. You got me thinking about changing the arrow icon itself. I've replaced the default arrow icons (which are white) with some solid black custom arrow icons which match the solid black route line. Now that they match it doesn't matter which is on top. Thanks again!

Nunezilla
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 03-17-2008
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,382
Blog Entries: 1
Re: Pushpin visibility / z-order

Glad to help... sorry there's not a better solution.. I know we ran into this before (Pushpins display order is tied to being just above the roads/cartographic layer) but for our purposes, we were OK with putting shapes behind the roads. Glad you found another solution..

Quote:
Where there's a will.. there's a way!
(from an Orc chant of an old Lord of the Rings animated movie)

Eric
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 03-17-2008
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,382
Blog Entries: 1
Re: Pushpin visibility / z-order

Or maybe it was "where there's a whip!" yes, that was it...
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
pushpin, visibility, zorder


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/pushpin-visibility-z-order-7313.html

Posted By For Type Date
Pushpin visibility / z-order - MapPoint Forums This thread Refback 03-22-2008 08:52 AM
MapPoint Forums This thread Refback 03-17-2008 01:52 PM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
PushPin and shape drawing Order EvetsMostel MapPoint 2006/2009 Discussion 1 04-13-2007 03:06 AM
PushPin and Line Order stevet MapPoint 2006/2009 Discussion 2 06-19-2006 12:37 PM
Shape visibility Map57 MapPoint 2006/2009 Discussion 0 12-21-2004 04:55 AM
Pushpin Z Order Anonymous MapPoint 2006/2009 Discussion 0 09-06-2004 05:00 PM
Mappoint visibility Anonymous MapPoint 2006/2009 Discussion 4 04-16-2004 09:12 AM


All times are GMT -5. The time now is 10:11 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map

Cheap flights Paris
Book cheap flights to Paris with Holiday Hypermarket. Paris is a stunning destination for everyone. Our cheap flights make it accessible to everyone too!

Flights to Spain
Find cheap flights to Spain on Travel Counsellors. A personal Travel Counsellor can help you plan flights and find accommodation in Spain.

Flight
When looking to jet set off, make sure you check out dealchecker.co.uk before you check in anywhere else. Bag a bargain flight from all major scheduled and charter airlines.

Cuba Holidays
Cuba holidays offer an exciting cultural and wonderful culinary experience. Book with The Holiday Place for a great deal.

Cheap Morocco Holidays
Cheap Morocco holidays may be the answer to your cheap holiday search. With sunshine throughout most of the year it can be great value if you avoid the peak season. Why not include a trip to the small tranquil town of Chefchaouen Tangier in your visit?

Cheap Inclusive
Make use of our service at Travel.co.uk to help you to research cheap inclusive holidays.

Holidays in Portugal
Find the perfect Algarve holiday. Book holidays in Portugal now at On The Beach.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52