locked
Error in Bing Map Control RRS feed

  • Question

  • Hi

    My code breaks out to this line:

    try{r.call(null,o[0],t)}catch(s){t.displayError=f("customControl_renderError_2args",t.name,s)}

    when I step over the line indicated below:

    var mapDiv;
    var current = 0;
    var step = 15;
    
    myapp.ViewStoreGroup.Map_render = function (element, contentItem) {
        mapDiv = $('<div />').appendTo($(element));
        $(mapDiv).lightswitchBingMapsControl();
    
        var visualCollection = contentItem.value;
        if (visualCollection.isLoaded) {
            showItems(current, step, contentItem.screen);
        } else {
            visualCollection.addChangeListener("isLoaded", function () {
                showItems(current, step, contentItem.screen);
            });
            visualCollection.load();  // When I step over this line I get an error 
        }
    };

    And the screen shows this:

    Any assistance will be appreciated. Thanks.


    Mark

    Thursday, October 10, 2013 12:15 AM

Answers

  • Hi Mark,

    Do you have the showItems() code that you added as the listener?

    I assume you were following Heinrich's blog.

    Thanks

    Pierson

    Thursday, October 10, 2013 11:22 PM
    Moderator