Community of VE/MapPoint Users and Developers
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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| 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();
}
Code: <iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&hl=en&geocode=&q=2775+N.+Front+St.+Woodburn,+OR,+97071&sll=40.551953,-122.337798&sspn=0.012114,0.019312&ie=UTF8&t=h&s=AARTsJqAbkWmH4avpPCjfg1tyN17fbxxOQ&ll=45.170359,-122.831526&spn=0.021179,0.036478&z=14&iwloc=addr&output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&hl=en&geocode=&q=2775+N.+Front+St.+Woodburn,+OR,+97071&sll=40.551953,-122.337798&sspn=0.012114,0.019312&ie=UTF8&t=h&ll=45.170359,-122.831526&spn=0.021179,0.036478&z=14&iwloc=addr&source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small> Last edited by domerdel; 10-13-2008 at 07:30 PM. |
| ||||
| Re: Pin on Micrsoft Virtual Earth is off, need to change coordinates
Documentation on how to use Lat/Long: VE SDK |
| |||
|
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();
}
|
![]() |
| Tags |
| change, coordinates, micrsoft, pin, virtual earth |
| ||||
| 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 | |
| |
| ||||
| 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 |