Pushpins in V4

Pushpin script working in version 3.x is no longer working in V4 when in 3d mode (works fine in 2d)...quite a few of the parameters in the failing pushin are null and the javascript error is complaining about a problem with 'length'


Answer this question

Pushpins in V4

  • HSBF Lewe

    Can you provide some more specifics So far, I'm not having trouble with any of the supported pushpin behvaviors in 3D mode.
  • ved_30

    Caleb--

    I don't have much more to add...here's an example of script causing the problem...again, this works fine in 2D V3, V4 and the pushpin does display in 3D, but as soon as I mouse over I get a javascript error

    Script:

    map.AddPushpin(new VEPushpin('LayPP:13',new VELatLong(30.557437,-84.221834),null,'13',null,null,null,null));

    Error:

    Microsoft JScript runtime error: 'length' is null or not an object

    So my guess is there is some discrepency between the way the 2D code handles null parameters vs. 3D

    --Brian Hearn

    I.S. Consulting (Microsoft Gold Partner)

    (not a lurker!)



  • Nayan Paregi

    A little debugging revealed an interesting bug--the title field can't be "null", but can be an empty string. In other words, this works:

    map.AddPushpin(new VEPushpin('LayPP:13',new VELatLong(30.557437,-84.221834),' ','13',null,null,null,null));

    I'll let the team know.


  • Pushpins in V4