Select to view content in your preferred language

Why aren't there any templates for creating web maps without using web map ids?

1109
5
03-01-2013 02:35 PM
IB1
by
Regular Contributor
I've been tasked with making a web map and the only templates/tutorials I can find involve using a web map id from ArcGIS Online.

I need to make a web map that talks directly to our ArcGIS Server and doesn't have anything to do with Online.

Can anyone point me in the right direction?

Thanks
0 Kudos
5 Replies
ReneRubalcava
Esri Frequent Contributor
Someone put one together here
https://github.com/DavidSpriggs/ConfigurableViewerJSAPI
And this one
https://github.com/agrc/AGRCJavaScriptProjectBoilerPlate

I've only browsed them, but they're pretty good starting points.
0 Kudos
IB1
by
Regular Contributor
Someone put one together here
https://github.com/DavidSpriggs/ConfigurableViewerJSAPI
And this one
https://github.com/agrc/AGRCJavaScriptProjectBoilerPlate

I've only browsed them, but they're pretty good starting points.


Awesome! I'll take a look, thanks.
0 Kudos
IB1
by
Regular Contributor
So I really like the one you posted:
https://github.com/DavidSpriggs/ConfigurableViewerJSAPI

Created by David Briggs of ESRI (hopefully he Googles his name)

I just wish instead of the Draw widget on the sidebar it was an editor. (Or both!)

I'd change it myself, but I'm new to Javascript and the OO method he uses confuses me.

--------------

I do have a question though. I edited the Config.js file to include my services.

For example:

operationalLayers: [{
  type: "feature",
  url: "http://xxxxxx.com/arcgis/rest/services/xxxxx/xxxxxxx/0",
  options: {
   id: "Cable",
   title: "Cable",
   opacity: 1.0,
   visible: true,
   infoTemplate: new esri.InfoTemplate("Attributes", "${*}"),
   mode: esri.layers.FeatureLayer.MODE_SNAPSHOT
   }}]


Now from what I've looked up and understand, the line:
infoTemplate: new esri.InfoTemplate("Attributes", "${*}"),


Should show all attributes for the feature when it's clicked.

But it's only showing 1 or 2 of the attributes when there are many more.

Am I not correctly understanding what "${*}" is doing?

I would like to list ALL the attributes.

Thanks in advance.
0 Kudos
IB1
by
Regular Contributor
////////////////////////////
0 Kudos
IB1
by
Regular Contributor
Bump it up top
0 Kudos