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?
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.
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
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 >
