Skip to content

Commit

Permalink
feat(attrib-loader): show grid update notice during attrib load
Browse files Browse the repository at this point in the history
  • Loading branch information
james-rae committed Apr 29, 2015
1 parent e91b807 commit 6f53373
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/js/RAMP/Modules/attributeLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ define([
"dojo/topic", "dojo/request/script", "dojo/Deferred",

/* RAMP */
"ramp/eventManager", "ramp/globalStorage"],
"ramp/eventManager", "ramp/globalStorage", "ramp/map"],

function (
/* Dojo */
topic, script, Deferred,

/* RAMP */
EventManager, GlobalStorage) {
EventManager, GlobalStorage, RampMap) {
"use strict";

/**
Expand Down Expand Up @@ -143,6 +143,7 @@ define([
case GlobalStorage.layerType.feature:

console.log('BEGIN ATTRIB LOAD: ' + layerId);
RampMap.updateDatagridUpdatingState(RAMP.layerRegistry[layerId], true);

//extract info for this service
var defService = script.get(layerUrl, {
Expand Down Expand Up @@ -177,6 +178,8 @@ define([
RAMP.data[layerId] = layerData;
//new data. tell grid to reload
topic.publish(EventManager.Datagrid.APPLY_EXTENT_FILTER);

RampMap.updateDatagridUpdatingState(RAMP.layerRegistry[layerId], false);
console.log('END ATTRIB LOAD: ' + layerId);
},
function (error) {
Expand Down

0 comments on commit 6f53373

Please sign in to comment.