MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Custom Icons in Virtual Earth

This is a discussion on Custom Icons in Virtual Earth within the MapPoint Web Service and Virtual Earth forums, part of the Map Forums category; I'm currently working with Virtual Earth and custom pushpins. I'm customising the pushpins using the VECustomIconSpecification object. This changes the ...


Go Back   MapPoint Forums > Map Forums > MapPoint Web Service and Virtual Earth

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



Click here to register

Reply

 

LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 09-11-2008
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 918
Blog Entries: 11
Custom Icons in Virtual Earth

I'm currently working with Virtual Earth and custom pushpins. I'm customising the pushpins using the VECustomIconSpecification object.

This changes the icon and text fine (a solid white disk with a letter 'A' at the moment).
I need to use the text, otherwise I'll have to create 27 different symbols instead of 3!

I'm finding two problems. First, VE is insisting on drawing the text (a 1 char symbol) first and then the symbol. Is there any way of changing the order, so that the symbol is drawn first and then the text? I could move the text to one side but that will look cluttered in the final application.

Secondly, it looks like the ImageOffset property isn't working?
The documentation is remarkably empty as to what the default is. My symbols are very simple - I want their centers to be the anchor for the requested longitude,latitude coordinate. I think I've done this in the past but it was with a much earlier version of VE.

Richard
__________________
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
See the Geoweb Guru for online mapping
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 09-12-2008
Junior Member
White Belt
 
Join Date: Sep 2008
Posts: 1
Re: Custom Icons in Virtual Earth

Please Use
padding-left
:10px;
in your CSS for seperating Pic And text
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 09-12-2008
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 918
Blog Entries: 11
Re: Custom Icons in Virtual Earth

No that isn't the problem - the text offset can be adjusted in VECustomIconSpecification (and that works pretty well).

I want the text to be on the symbol, butVE insists on drawing the text first then the symbol.

We're looking at a different approach, because it looks like the API does not support what I want.

Richard
__________________
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
See the Geoweb Guru for online mapping
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 09-12-2008
Junior Member
White Belt
 
Join Date: Sep 2008
Posts: 6
Re: Custom Icons in Virtual Earth

Hi,
Have you tried to provide simple HTML for the custom icon.
You could have 2 DIV elements overlapped. One holding the Text and the other Holding the picture

Regards
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 09-15-2008
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 918
Blog Entries: 11
Re: Custom Icons in Virtual Earth

Thanks - I did start using HTML, but I think I switched to using the object CustomIconSpecification because it was more flexible. Well, in theory - unfortunately it doesn't fully work!

We are now no longer using the symbol.
The image offset is still not working - I hear this is a bug with VE 6.1, but that using HTML (as per your suggestion) does work with the image offset.
The error on the offset is quite small - I'm going to leave it until 6.2 comes out (unless it is noticed )

Richard
__________________
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
See the Geoweb Guru for online mapping
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
custom, icons, virtual earth


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/custom-icons-virtual-earth-8505.html

Posted By For Type Date
Pushpin Tool Add-in - MP2K Magazine This thread Refback 09-15-2008 01:36 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 On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Virtual Earth Webcast: Adding Mapping Capabilities to your Applications with Virtual Earth VE For Government Virtual Earth Blogs 0 05-11-2008 03:50 PM
Virtual Earth & SQL Server 2008 - Part 3: Getting Started with Virtual Earth Johannes Kebeck's Blog Virtual Earth Blogs 0 03-02-2008 02:40 PM
Custom List: Some fun Permalinks in Virtual Earth VE Team Virtual Earth Blogs 0 09-15-2007 05:25 PM
Using the MapPoint Web Service Color Palette for Custom Icons MSDN MapPoint Feed Virtual Earth Blogs 0 09-15-2007 05:06 PM
Custom Icons in MP Web Service Anonymous MapPoint 2006/2009 Discussion 4 04-06-2005 01:16 PM


All times are GMT -5. The time now is 07:27 PM.


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


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 53 54 55