google_store_locator.js should report AJAX and JSON errors.

Even if this is just logging them to the console:

 $.getJSON(url, function(json) {
        //defining our success handler, i.e. if the path we're passing to $.getJSON
        //is legit and returns a JSON file then this runs.

        // These will be either all stores, or those within the viewport.
        var parsedStores = that.parseStores_(json);
        that.setStoresCache(url, parsedStores);
        that.processParsedStores(parsedStores, bounds, features, callback, centerPoint);


        // THIS COULD ME MOVED TO 'always()'
        $("#cluster-loading").remove();
        //

      })
      .done(function() {
        console.log( "second success" );
      })
      .fail(function() {
        console.log( "error" );
      })
      .always(function() {
        console.log( "complete" );
      });

Comments

ITWest-jg created an issue. See original summary.

ITWest-jg’s picture

I should state why this is a problem we have on occasion -- when the wrong URL for the JSON feed is entered instead of JSON, you get the drupal 404 page which does not parse. This throws an error that is not caught.

ITWest-jg’s picture

Issue summary: View changes