Saturday, 05 July 2008

The products listed above, and their associated names, icons and logos, are the intellectual property of Microsoft Corporation.

Virtual Earth Forum
Polygons get inaccurate when zooming out
MSDN Forums: Virtual Earth -

It seems polygons are optimized to contain fewer vertices when zooming out, but this introduces some noticable 'popping' and makes sure the polygons don't align properly.  Is there a way to turn this optimizing off so they are always displayed at full resolution?  I couldn't find anything in the reference.

 


View article..

Virtual Earth Disambiguation Dialog Box Values
MSDN Forums: Virtual Earth - I need to get at the values that appear in the disambiguation dialog box on VE so I can display them elsewhere. I can't quite figure out where to do this. Can anyone point me in the right direction?

Thanks.

View article..

List of several locations via address
MSDN Forums: Virtual Earth -

 

I have been messing with this for 3 weeks and I either get an empty map or tons of "script" errors.

 

How would I go about listing several push pins (be nice to also have a small image with small descrip as well) by address instead of lat/long? I want to use something like

 

var locations = new Array('293 Jump St Dallas TX','123 Westwood Dr Dallas TX','923 Plano Rd Dallas Tx');

var titles = new Array('Location 1','Primary Office','Location 3');

var images = new Array('image1.jpg','image2.jpg','image3.jpg');

var brief = new Array('Our Secondary Branch Office','Main Office and Central Hub','Our New Office opening in July');

var links = new Array('http://www.domain.com/branch1','http://www.domain.com/','http://www.domain.com/branch2');

 

I would want it to zoom in enough to show all these locations with pushpins and highlighting over them will display the image and brief description. Clicking would load link. Keep in mind the image, description and link are all secondary. Displaying of course is my primary goal.

 

I tried doing the below via other posts without even getting to images and brief yet, just to display pushpins:

 

 

function GetMap()
         {           
            map = new VEMap('myMap');
            map.LoadMap();
            LocationSearch(locations[0]);

function LocationSearch (searchstr) {
  if(searchstr != '') {
     map.Find(null,searchstr,1,searchcallback);
  }
}

  function searchcallback(results) {
    map.AddPushpin(new VEPushpin(counter, results[0].LatLong, null, titles[counter]));
    counter++;
    if(counter  }
}

But this gives me "an exception thrown and not caught" and making slight changes just gives me "object expected"

 

So what am I doing wrong and how could I display it correctly?

Any help is greatly appreciated.

 

Devan


View article..

Displaying Map in a Hidden div
MSDN Forums: Virtual Earth -

Hi.
 
Our application has a report with two tabs: One of them containing the map and the other with some other data.
We let our users generate the report from either tabs.
 
When we generate the report from the tab that contains the map everything is OK.
When generating the map from the second tab (where the map is invisible), when switching to the map's tab, the map doesn't display well. It is truncated and occupied only part of the div space.
 
In order to create the div we use:


       

        

       

 
To create the map:
map = new VEMap('myMap');
map.LoadMap(new VELatLong(<%=lat%>, <%=lon%>), <%=scale%>, '<%=mapStyle%>', false, VEMapMode.Mode2D);
 
 
We printed some attributes using alert:
When generating the report from the map's tab (in this case the map is displayed correctly):
TopLeftLatLong = 51.17934297928927, -155.390625
BottomRightLatLong = 23.885837699861994, -120.234375
 
When generating the report from the other tab (in this case the map is displayed wrong):
TopLeftLatLong = 0, 0
BottomRightLatLong = -33.137551192346166, 35.156250000000014
 
I saw a solution in this post:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2572191&SiteID=1
 
which suggest a workaround: create the map when the 'onclick' of the map's tab occurs (and a flag indicating whether the map was already created so it will not be created each time the tab is selected).
 
However, this workaround will be hard to implement in our existing environment.
Does anyone can help us how to solve this issue without doing any workarounds?
 
Thanks,
Alon
   

 


View article..

Interesting point
MSDN Forums: Virtual Earth -

 

Hi to all, how to set a interesting point and make it available for all user? Where I send the details of this point?? Thanks
View article..

Map Labels
MSDN Forums: Virtual Earth - Is there a way to remove the labels on the Road map (city/state/street, etc.)?  If not, is there a way to download or purchase a copy of the map tiles so that we could edit them?

Thank you!

Sarah

View article..

Accessing PushPin clicked events through C#
MSDN Forums: Virtual Earth -

 

I have put some pushpin objects. On clicking of these i want to show some information which is stored in database. I want to do this from c# code behind file. How can i do that. Is there any way. 

View article..

"invalid argument" error in 3D mode
MSDN Forums: Virtual Earth -

 

Sorry this post will have to be exceedingly vague:

 

Basically whenever I move the mouse around in 3D mode, I'm getting a javascript "invalid argument" error.

 

- I am not handling the onmousemove event.

- When I try to debug it takes me to the map control handler and highlights this line of code:

d.style.top=m.getP1().y-d.offsetHeight+q.y+v;

- I do not have any controls that are added using VEMap.AddControl (...anymore.  I used to but commented them out to debug this error), which I thought might be the problem as discussed in this thread.

 

Any ideas as to what could be going on here?  Or any debugging suggestions?

 

O, also, I don't know if this is related, but sometimes if I would initialize the map control in 3D mode, part of the dashboard would just disappear (the part that allows the user to switch between 2D, 3D, road, aerial, etc.).  Today it isn't doing that, however.

 

Thanks!

 

Louis


View article..

"invalid argument" error in 3D mode
MSDN Forums: Virtual Earth -

 

Sorry this post will have to be exceedingly vague:

 

Basically whenever I move the mouse around in 3D mode, I'm getting a javascript "invalid argument" error.

 

- I am not handling the onmousemove event.

- When I try to debug it takes me to the map control handler and highlights this line of code:

d.style.top=m.getP1().y-d.offsetHeight+q.y+v;

- I do not have any controls that are added using VEMap.AddControl (...anymore.  I used to but commented them out to debug this error), which I thought might be the problem as discussed in this thread.

 

Any ideas as to what could be going on here?  Or any debugging suggestions?

 

O, also, I don't know if this is related, but sometimes if I would initialize the map control in 3D mode, part of the dashboard would just disappear (the part that allows the user to switch between 2D, 3D, road, aerial, etc.).  Today it isn't doing that, however.

 

Thanks!

 

Louis


View article..

Call JScript from C#
MSDN Forums: Virtual Earth -

Hi,

 

I wrote a JScript (related with Virtual Earth) and want to call in my C# program so that I can get the returned value from JScript. Would anybody please tell me how to do it?

 

I googled some websites on how to call the JScript from C#, but didn't find a satisfied answer.

 

Thank you so much!

 

Best,

Casey


View article..

PreviousNext
Copyright 2008. Sponsored by Aptovita   |  Terms Of Use  |  Privacy Statement
Content on this site is generated from the developer community and shared freely for your enjoyment and benifit. This site is run independantly of Microsoft and does not express Microsoft's views in any way.