1

I am trying to add a measure widget from the esri samples and I get the following error. error message

I am using boostrap.css and I am wondering if this has an effect on widget loading.

<div class="container-fluid" data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="design:'headline',gutters:false">

I am also wondering if these tags conflict with each other. I have trouble getting widgets to show in my map div.

<div id="map" data-dojo-type="dijit/layout/ContentPane" class="is">

I toggle the classes to change the page width and show a side bar menu.

I saw a similar question with no answer.

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Jan 18, 2018 at 18:19
1
  • What was the similar question that you saw? Please always provide a link when referencing another question. Commented Jan 18, 2018 at 21:40

1 Answer 1

2

The error message of string.substitute could not find key "loadingState" in template actually refers to a missing variable in the function that is using the "ContentPane" widget.

Take this method that will attempt to load the "dijit/layout/ContentPane" using the parser:

require(["dojo/parser", "dijit/layout/ContentPane", "dojo/domReady!"], function (parser) { parser.parse(); });

SOLUTION, add a variable for the missing "loadingState":

require(["dojo/parser", "dijit/layout/ContentPane", "dojo/domReady!"], function (parser) { loadingState = "Loading"; parser.parse(); });

answered Feb 20, 2018 at 1:55

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.