Caleb T


Hi all-

Just wanted to let you know that the SDK has been updated with several bug fixes. The downloadable CHM and the Interactive SDK have been updated; the online version at MSDN should be live later today. Thanks (and apologies) to those of you who found and reported the bugs!

As always, feedback (bugs, suggestions, comments) on the SDK are weclome and appreciated. Post them here or mail to maphelp (at) microsoft.com. Be sure to put "Virtual Earth SDK" in the subject line.

Cheers,

Caleb




Re: SDK Updates

Dave Britton


Great Stuff!





Re: SDK Updates

SoulSolutions

Great news. Is their a link to the changes
I couldn't spot any release notes.
John.






Re: SDK Updates

JeffK_

Hmm, cant see much changes. And the important infos are still missing. Bummer.




Re: SDK Updates

Caleb T

Sorry, forgot the release notes...

1. PixelToLatLong() takes x and y values, not a Pixel object.

2. VEMap.onLoadMap property description was updated.

3. VEMap.IncludePointInViewport was renamed to IncludePointInView.

4. VEMap.ShowPushpin() was removed, since it isn't supported by the control.

As for the "and the important infos are still missing": please, tell me what you see that is missing so I can get it in there--I want the SDK to be complete and useful. :)





Re: SDK Updates

JeffK_

Ok, dude, ist gonna be a long list,

1. How to get an array of Pushpins on the map

2. How to change the picture of a Pushpin without recreating the pin The VEPushpin documentation seems to lack some property descriptions, like pin.Image ( if available)

3. How to solve the problem with disappearing polylines when movin the map with cursorkeys, dashboard, or resizing it

4. Is it possible to get the latitude and longitude under the mousepoint in the oncontextmenu event (currently i store them in a temp. VELatLong in the onclick event)

5. map.vemapcontrol got some methods like GetFailureRate,SetTrafficView,GetTrafficAvailability,GetMarketsFile,GetIncidentsFile,GetSlidingExpirationForAutoRefresh,GetAutoRefreshRate, id like to know about

6. map has m_velayermanager and _lm wich look absolutely the same, what about it

7. what about map.SetFindResultsPanel

8. when in birdseye view, i cant get lat and lon from the map control

9. a very important thing: the documentation for the event-Arguments of the mapcontrol events is completely missing

10. is there a method to use for checking if imagery for a given zoomlevel and mapstyle is available

11. wondering about the map.m_veambiguouslist members and their use, and map._DisambiguateCallback and map._Disambiguate, and their use

12. Was fiddling around with the correct format of an adress/place for finding locations, found out, that (im in germany) without countryname ve doesnt find the proper adress,and if i dont use an english countryname, ve doesnt find it. maybe you can mention that in the docs for finding locations and routes

i think that enough the first time.

JeffK






Re: SDK Updates

Caleb T

Thanks Jeff. My answers are inline. As you'll see, some of the answers are "its in the SDK" and some are "it isn't in the SDK for a good reason." :-)

Ok, dude, ist gonna be a long list,

1. How to get an array of Pushpins on the map

Since you are adding pushpins to the map, then you already have the array, right So tthere are several ways to add them: you can create an array and iterate through it (not covered in the SDK because this is basic jscript array stuff), or you can put all the points in a layer and add the layer (covered in the SDK and interactive SDK).

2. How to change the picture of a Pushpin without recreating the pin The VEPushpin documentation seems to lack some property descriptions, like pin.Image ( if available)

In the interactive SDK, see "Use pushpins, Add a custom pushpin". I've got the complete sample code in there to do exactly that.

3. How to solve the problem with disappearing polylines when movin the map with cursorkeys, dashboard, or resizing it

I just became aware of this yesterday, and I've notified the team about it. Not really an SDK issue...but I'll hopefully be able to find a suitable workaround.

4. Is it possible to get the latitude and longitude under the mousepoint in the oncontextmenu event (currently i store them in a temp. VELatLong in the onclick event)

Sounds like you figured that one out. The oncontextmenu doesn't return the LatLong, but onclick does. See #9 for "why isn't it in the SDK "

5. map.vemapcontrol got some methods like GetFailureRate,SetTrafficView,GetTrafficAvailability,GetMarketsFile,GetIncidentsFile,GetSlidingExpirationForAutoRefresh,GetAutoRefreshRate, id like to know about

None of those are supported methods. If it isn't documented in the SDK, it is an unsupported hack, which means it might break in the next release. The omission of these, and many other methods and properties, is completely intentional.

6. map has m_velayermanager and _lm wich look absolutely the same, what about it

See #5.

7. what about map.SetFindResultsPanel

See #5.

8. when in birdseye view, i cant get lat and lon from the map control

http://msdn.microsoft.com/library/en-us/VEMapControl/HTML/M_Namespace_VEBirdseyeScene_PixelToLatLong.asp frame=true should do it for you.

9. a very important thing: the documentation for the event-Arguments of the mapcontrol events is completely missing

Yep. I'd say this is the one big thing still missing from the SDK, and it is top of my list.

10. is there a method to use for checking if imagery for a given zoomlevel and mapstyle is available

http://msdn.microsoft.com/library/en-us/VEMapControl/HTML/M_Namespace_VEMap_IsBirdseyeAvailable.asp frame=true tells you if Bird's Eye images are available at the current map view (location and zoomlevel).

11. wondering about the map.m_veambiguouslist members and their use, and map._DisambiguateCallback and map._Disambiguate, and their use

See #5.

12. Was fiddling around with the correct format of an adress/place for finding locations, found out, that (im in germany) without countryname ve doesnt find the proper adress,and if i dont use an english countryname, ve doesnt find it. maybe you can mention that in the docs for finding locations and routes

Agreed. I need to get more in the SDK on international use, altough this isn't a SDK/developer problem, really. Maybe it belongs in the end user docs for our local.live.com site

i think that enough the first time.

JeffK

Thanks, Jeff. And please keep the feedback coming!





Re: SDK Updates

Tony Ernst

Is there a reason that there isn't an Id property on the VEPushpin class

Thanks

Tony





Re: SDK Updates

hafi23

hi there...

thanks Caleb T, this was a very important post!
just want to underline the need for "event-Arguments" and " correct format of an adress/place for finding locations" (as i am from Italy) i think this should also be in the SDK not only on live.local.com!
hope you keep going this way!

cheers hafi





Re: SDK Updates

kins_z

Hi,




I am trying to get to work some functionality related to a multilayered map.

I would like figure out how to determine when a custom layer is completely loaded.


Basically a multilayered map has been implemented and I want to show a "loading" icon or label on the map or page while the map is loading a custom layer or the base ve map layer. The following is how I add the custom layer to the map.

var tileSourceSpec = new VETileSourceSpecification();
tileSourceSpec.ID = name;
tileSourceSpec.TileSource = "my server" ;
tileSourceSpec.NumServers = 1;
map.AddTileSource(tileSourceSpec);
var tileLayer = new
VELayerSpecification(VELayerType.VETileSource,id, name);

tileLayer.ZIndex = 0;
tileLayer.Method = 'POST';
tileLayer.FnCallback = alertmap;
tileLayer.Opacity = opacity;
map.AddLayer(tileLayer);


As you can see I tried to assign FnCallback but this does not work on this case or any other one.



I would appreciate some help regarding this functionality.



Thank you,