Upgrading from V3 to V5

I've let my map slide for a year or so and I want to get back into it.

So I changed the v3 to v5 in the mapcontrol.js include file. This now causes me to get a:

'view.zoomLevel' is null or not an object error when I pan or zoom.

Any thoughts? And any ideas where else it might break my map?Smile

Thanks in advance.

http://interneticsonline.com/helmsman.html

[467 byte] By [dsueck] at [2008-1-7]
# 1

Yeah your going to find that much has changed within the events and pins (now shapes). The changes are for the better but it maybe a good oppotunity to write your code again. I highly recommend looking at at an object orientated javascript approach.

http://www.asp.net/ajax/documentation/live/tutorials/EnhancingJavaScriptTutorial.aspx

I am working on a few articles from a TechEd presentation in Australia next week that may help. For now I think the best reasources are the V5 iSDK, various threads here and my clustering V5 article on ViaVE.

I'm in the middle of a revamp for the ViaVE site that will contain more updated VE information but its probably 3 weeks away.

Feel free to post specific issue here.

Your zoomlevel error I suspect is becouse now you access directly from the object passes into the event:
http://msdn2.microsoft.com/en-us/library/bb429609.aspx

e.zoomLevel

John.

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

Hi, there's a lot of similarity with V4 and V3, so this article on converting from V4 to V5 might help:

http://msdn2.microsoft.com/en-us/library/bb545008.aspx

DerekChan at 2007-10-2 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...
# 3
Thanks folks. I spent the cracks between my other work today upgrading it. It wasn't too terrible, though I was pretty surly to start with Smile

Most of the differences were in the find and pushpins. And I'm still not sure what to do with the e.view.setZoomLevel. That's going to take some more study methinks.

Thanks again!

Dean

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

I hadn't spotted those articles on msdn. I'll make sure we get a copy hosted on ViaVE so its all in one easy to find spot.

John.

SoulSolutions at 2007-10-2 > top of Msdn Tech,Windows Live Developer Forums,Virtual Earth: Map Control Development...

Windows Live Developer Forums

Site Classified