Annotation function of the URL API broken

The URL API specifies an annotation parameter for the scratch pad:

sp=an.latitude_longitude_title_description

It should allow you to add a push pin at a specific latitude and longitude.

It definitely used to work, but does not appear to now. Has this function been disabled or changed?

Or can someone provide an example URL where this works?

[419 byte] By [RoboRubik] at [2007-12-24]
# 1

Same problem here. I used to have a scratch pad but now it doesn't display using the url syntax.

When you enter a url that includes a cp parameter and a style of birdseye the view always zoomed to the users last viewed area. (I assumed this was because I didn't provide a required scene parameters for the oblique - Any ideas how I can get this on the fly?). The scratch pad came to the rescue by allowing the user to click on the annotated push pin and the view would change from the last viewed area to center on the push pin. Now the scratchpad url parameter no longer works so my app is useless. Despite including a correctly formed sp=an.... parameter the push pin never shows up and in fact the scratch pad itself doesn't appear.

I assume some changes occurred in the new version. Funny that with these changes no one thought it was necessary to update the documentation for the url syntax?

Here's an example of one of my urls

http://local.live.com/?v=2&cp=42.217560~-70.930690&style=o&lvl=13&sp=an.42.217560_-70.930690_249-29_Block-Lot

Very disappointing. I understand it's BETA but that doesn't mean you change things without documenting.

jport at 2007-10-8 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 2
I've noticed the same problem with the annotation parameter. As for your problem of the map zooming to your last location... If you click on Options in the local.live viewer, there is a check box that specifies on exit to save my last location. If that is checked, it will over-ride the URL parameters. I haven't found any way to turn this feature off by default. I agree, there should be better documentation on the changes to the API for the newest version.

jc

Quickbird at 2007-10-8 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 3

I've passed this information on to the folks responsible for documenting the URL changes, and we'll get an update out soon. Sorry for the confusion regarding the URL parameters!

CalebT-MSFT at 2007-10-8 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 4

How about some info to tide me over before the documentation is updated? Will it be soon? If so then I guess I can wait.

Thanks

Jamie

jport at 2007-10-8 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 5
There was another thread on this that I had posted in (I was having the same issues). Today, I think I may have actually found the answer! The new API I think is case sensitive.

Instead of: an.latitude_longitude
Use: aN.latittude_longitude

check this url: http://local.live.com/default.aspx?v=2&cp=36.100374~-95.749733&style=h&lvl=16&sp=aN.36.100374_-95.749733

vs.

http://local.live.com/default.aspx?v=2&cp=36.100374~-95.749733&style=h&lvl=16&sp=an.36.100374_-95.749733

the first one should work, the second one doesnt!

RWF at 2007-10-8 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 6
That worked, thanks!
RoboRubik at 2007-10-8 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...

Windows Live Developer Forums

Site Classified