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

Customizing the HTML #4

Closed BretWhiteley closed 9 years ago

BretWhiteley commented 9 years ago

It looks like all the content for the is created through the JavaScript. If I wanted to customize this (add a logo ect.) - where would one do that?

jgravois commented 9 years ago

you should still be able to add static elements within index.html here.

BretWhiteley commented 9 years ago

I tried that - it loads initially, but when the map loads, the map covers over the customized item.

the same happens if I add customization to the CreateContent.js file

jgravois commented 9 years ago

my bad, to get a logo in the desktop layout you could do something like this within CreateContent.js

createLayout: function() {
...
if(!this.isMobile){
  content = "<div id='title'></div><div id='subtitle'></div><img src='https://developer.cdn.mozilla.net/media/img/mdn-logo-sm.png' alt'MD Logo' style='position: absolute; top:10px; right:10px;' />";
BretWhiteley commented 9 years ago

That did it - Thanks.

If you could, please have a look at BUG-000084055 - I created an application with the JS API to allow for editing of a feature service - (much like you have done with this Application) but it seems that with the method I used (AttributeInspector) does not work with Services hosted in ArcGIS Online. However, you have been able to correctly allow the editing of features in AGOL - so what did the Esri technical support analyst miss?

jgravois commented 9 years ago

glad to hear it. i'll look into the second thing you mentioned and write again if i have anything to share.

marlak commented 9 years ago

Hi Bret,

I took a look at this template and pulled up the web map from the index.html. It is using services from ArcGIS Server and that is why the attribute inspector is working as expected.

Web Map: http://www.arcgis.com/home/item.html?id=25977874c66c4c0a8dcc181506c6fb45

BretWhiteley commented 9 years ago

Hi Marlak,

Yeah, there is a noted bug with using the Attribute Inspector with feature services hosted on AGOL - the widget works as expected with services hosted by ArcSERVER.

Bret