Esri / edit-template

Edit is a configurable application template that enables you to provide basic editing capabilites for editable layers in a web map.
10 stars 23 forks source link

Assistance required - Can not display editor toolbar on locally hosted web server application. #3

Closed bogibrynjar closed 10 years ago

bogibrynjar commented 10 years ago

Hi @kellyhutchins ,

I downloaded the template for this simple editor template and configured it to use a web map that contains a hosted editable feature service. Everything works fine and well except I can not get the editor toolbar to display. How can I make the toolbar display by changing the template code?

Thanks in advance.

jgravois commented 10 years ago

i was able to get the editor toolbar to display on browsers in the desktop by adding an additional configuration option within index.html

var defaults = {
  ...
  "displaytoolbar": true
}

i realized this was necessary by looking at the Editor widget constructor logic in CreateContent.js https://github.com/Esri/edit-template/blob/master/javascript/CreateContent.js#L237

including the option and setting it to 'false' by default would make configuring this option a little simpler.

bogibrynjar commented 10 years ago

Hey @jgravois

Thanks for the quick replay and advice. That was what I did originally but I must have coded it wrong somehow because it didn't work but it did this time when I copy/pasted your syntax completely into the defaults. Problem solved.

Cheers!

jgravois commented 10 years ago

glad to hear it. take care.