MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Pin on Micrsoft Virtual Earth is off, need to change coordinates

This is a discussion on Pin on Micrsoft Virtual Earth is off, need to change coordinates within the General Chat forums, part of the Map Forums category; bare with me, I'm not a hardcore developer, more of a front-end web designer with prior knowledge of custom API ...


Go Back   MapPoint Forums > Map Forums > General Chat

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 10-13-2008
Junior Member
White Belt
 
Join Date: Oct 2008
Posts: 2
Question Pin on Micrsoft Virtual Earth is off, need to change coordinates

bare with me, I'm not a hardcore developer, more of a front-end web designer with prior knowledge of custom API google map code working with latitude and longitude gps coordinates. Jumping on after another developer created this code, so i'm trying to make educational guesses.

Basically, the var is pulling it by address. When you zoom in, it's about 100-150 yards off, it's not their building the pin is on. So, I'm assuming that I'll have to determine it by lat/long gps coordinates, just don't know how.

Here's the code:

Code:
  function AddPin4()
    {
      var address = "2775 N. Front St. Woodburn, OR, 97071";
      map.Find(null,address, null, null, null, null, null, null, null, false, findCallback4);
    }
  function findCallback4(layer, resultsArray, places, hasMore, veErrorMessage)
    {
      var info = "Grating Pacific";
      var pin = new VEShape(VEShapeType.Pushpin, places[0].LatLong);
      //pin.SetCustomIcon(icon);
      map.ClearInfoBoxStyles();
      pin.SetTitle("<h3>Grating Pacific</h3>");
      pin.SetDescription("2775 N. Front St.<br />Woodburn, OR 97071<br />(800) 942-4041<br />(503) 980-2060<br />FAX (503) 980-2068<br />sample@email.com");
      map.AddShape(pin);
      AddPin5();
    }
Here is the google maps code. this has the custom GPS coordinates in it:

Code:
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;hl=en&amp;geocode=&amp;q=2775+N.+Front+St.+Woodburn,+OR,+97071&amp;sll=40.551953,-122.337798&amp;sspn=0.012114,0.019312&amp;ie=UTF8&amp;t=h&amp;s=AARTsJqAbkWmH4avpPCjfg1tyN17fbxxOQ&amp;ll=45.170359,-122.831526&amp;spn=0.021179,0.036478&amp;z=14&amp;iwloc=addr&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&amp;hl=en&amp;geocode=&amp;q=2775+N.+Front+St.+Woodburn,+OR,+97071&amp;sll=40.551953,-122.337798&amp;sspn=0.012114,0.019312&amp;ie=UTF8&amp;t=h&amp;ll=45.170359,-122.831526&amp;spn=0.021179,0.036478&amp;z=14&amp;iwloc=addr&amp;source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small>

Last edited by domerdel; 10-13-2008 at 07:30 PM.
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 10-14-2008
lfdmike's Avatar
Member
Green Belt
 
Join Date: May 2004
Posts: 54
Blog Entries: 7
Re: Pin on Micrsoft Virtual Earth is off, need to change coordinates

Documentation on how to use Lat/Long:
VE SDK
__________________
Mike Mueller
Lannon Fire Department
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 10-14-2008
Junior Member
White Belt
 
Join Date: Oct 2008
Posts: 2
Question Re: Pin on Micrsoft Virtual Earth is off, need to change coordinates

I tried that. It still doesn't work. Perhaps someone can help with a correction to my code.

Code:
function AddPin4()
    {
      var address = "2775 N. Front St. Woodburn, OR, 97071";
      map.Find(null,address, null, null, null, null, null, null, null, false, findCallback4);
      
    }
  function findCallback4(layer, resultsArray, places, hasMore, veErrorMessage)
    {
      var info = "Grating Pacific";
      var pin = new VEShape(VEShapeType.Pushpin, new VELatLong(45.161101, -122.835689);
      //pin.SetCustomIcon(icon);
      map.ClearInfoBoxStyles();
      pin.SetTitle("<h3>Grating Pacific</h3>");
      pin.SetDescription("2775 N. Front St.<br />Woodburn, OR 97071<br />(800) 942-4041<br />(503) 980-2060<br />FAX (503) 980-2068<br />sales@gratingpacific.com");
      map.AddShape(pin);
      AddPin5();
    }
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
change, coordinates, micrsoft, pin, virtual earth


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/pin-micrsoft-virtual-earth-off-need-change-coordinates-8869.html

Posted By For Type Date
Reverse Geocoding, Pt. III - MapPoint Articles - MP2K Magazine This thread Refback 10-15-2008 02:55 AM

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
Change Virtual Earth Background Color VirtualEarth MSDN Blog Virtual Earth Blogs 0 07-09-2008 11:11 PM
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
Virtual Earth API: How to Create a Full-Screen Virtual Earth Mashup Keith Kinnan's Weblog Virtual Earth Blogs 0 01-04-2008 10:27 AM
Virtual Earth News from GEOINT 2007: Virtual Earth Appliance VE For Government Virtual Earth Blogs 0 10-24-2007 01:10 PM


All times are GMT -5. The time now is 03:33 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


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