|
POST
|
try adding the Url below at line 123 of the index.html //Modify this to point to your sharing service URL if you are using the portal
sharingurl: "http://www.arcgis.com/sharing/content/items",
//specify a group in ArcGIS.com that contains the basemaps to display in the basemap gallery
... View more
12-28-2012
01:19 PM
|
0
|
0
|
2272
|
|
POST
|
the short answer is no. the javascript team isn't working on one "end-all, be all" viewer, but rather suggest that the variety of app templates available on arcgis.com be used as a potential starting point for developers. this has been discussed pretty extensively, recently here, so its probably worth checking out existing posts.
... View more
12-28-2012
11:22 AM
|
0
|
0
|
1845
|
|
POST
|
i know what you mean by identify task, but im not sure i understand what the attribute info task is. if you are referring to this sample, it is the popup widget which actually supports the ability to toggle through multiple returned features, rather than the identify task itself. i think reading through the conceptual help for infoWindows might be pretty helpful to get a better understanding of how attributes are displayed.
... View more
12-28-2012
06:40 AM
|
0
|
0
|
610
|
|
POST
|
also, in chrome, panning the map moves the GPS point and holding shift while dragging a box draws the rectangle offset from the mouse cursor.
... View more
12-27-2012
01:54 PM
|
0
|
0
|
2051
|
|
POST
|
hi Prasanna, the first code block clears out the bldgResults and parcelResults variables just in case the identifyTask has already been run (so that previous results won't appear again). because the identify returns an array of results, you either have to loop through them or specify the index position of one of the items in the array in order to retrieve attributes of individual features. in these sorts of scenarios it is extremely helpful to set a breakpoint in the code using browser developers tools and interrogate variables in the console to see whats going on. in the screenshot i attached i set a breakpoint at the beginning of the addToMap function. the first feature that gets returned does not include a "UNIQPOLYID" field, so a call to retrieve it will return "undefined".
... View more
12-27-2012
07:17 AM
|
0
|
0
|
641
|
|
POST
|
this one is in the southeast, but it definitely uses onMoveOver and onMouseOut with polygon features...
... View more
12-18-2012
08:05 AM
|
0
|
0
|
3881
|
|
POST
|
documentation on the web map spec was released the other day. it is my understanding that the JavaScript team has no plans to develop and maintain a single configurable "Viewer" which will include a full pallete of widgets and allow you to plug and play with your own services.
... View more
12-14-2012
08:27 AM
|
0
|
1
|
2603
|
|
POST
|
most of our sample servers are configured to server over HTTPS as well. just check in the browser to make sure. as i mentioned before, nothing needs to go in your proxy at all except an item which puts your server in the list of machines which the proxy grants access to forward traffic from. <serverUrl url="https://sampleserver6.arcgisonline.com/arcgis/rest/services/"
matchAll="true"></serverUrl>
you shouldn't need to instantiate and configure a serverInfo object or set any properties, the identity manager should be able to request and append tokens automatically when a secure resource is added to your application.
... View more
12-13-2012
10:08 AM
|
0
|
0
|
2348
|
|
POST
|
have you seen our JavaScript API samples related to web maps? they demonstrate how to reference an arcgis.com web map by id and pull the layers (popups and all) into a custom application. this specific sample demonstrates how to pass one of the operational layers from the web map to a newly instantiated legend widget. this affirms that it is possible to write code to support additional functionality on top of what is available in arcgis.com map = response.map;
...
//add the legend
var layers = response.itemInfo.itemData.operationalLayers;
...
if(layerInfo.length > 0){
var legendDijit = new esri.dijit.Legend({
map:map,
layerInfos:layerInfo
},"legend");
... View more
12-13-2012
08:30 AM
|
0
|
0
|
710
|
|
POST
|
a couple things... 1. i noticed in your sample code that both your proxy and countyLayer are referenced using HTTP instead of HTTPS. i am under the impression that you need to use HTTPS across the board (including hosting for the app itself) when working with the identity manager. 2. the identity manager definitely "does its own thing" with regard to generating tokens. the credentials/token which you might have stored in your proxy config would only be relevant if you were trying to hide enough information to grant access to end users automatically. 3. the proxy referenced in your application will only be used when necessary to POST a request across domains, as you noticed in our sample app, because our sample server "servicesbeta" supports CORS, both Firefox and Chrome (which also support CORS) request a token and deliver content from the server without using the proxy at all. it is included for IE specifically, which does not support CORS. what specific problem are you encountering now? are you seeing a prompt to login after correcting the Url of your service? does it allow you to see the content?
... View more
12-13-2012
08:20 AM
|
0
|
0
|
2348
|
|
POST
|
if you're just getting familiar with the JavaScript API, there is no need to install and configure it locally. feel free to use the version we make available over the internet. i'd recommend taking a look at our conceptual article "Building your first application" and then perusing all our published samples. you can copy/paste or download the projects and host on IIS or any other web server on a development machine. They should work whether you are pointing at your own ArcGIS Server content or the content on our sample servers. hope that helps! 🙂
... View more
12-12-2012
10:46 AM
|
0
|
0
|
1637
|
|
POST
|
well, he said he was just planning on doing some testing to get familiar with the API.... but if he's gonna build an app that generates a few million hits and causes a natural disaster which takes out server farms, hopefully he'll let us all know in advance 🙂
... View more
12-12-2012
09:55 AM
|
0
|
0
|
1637
|
|
POST
|
the instructions you mentioned are only relevant if you have ArcGIS Server installed on the same machine to help you configure it to point to your local API when displaying the JavaScript sample viewer for services you've published. ie: http://services.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer?f=jsapi to make things slightly more confusing, the wording of the present instructions are specific to ArcGIS Server 10.0. At 10.1 the rest config properties location is [install_location]\ArcGIS\Server\framework\runtime\tomcat\webapps\arcgis#rest\WEB-INF\classes\resources\rest-config.properties we are working on updating the installation guide. sorry for the inconvenience.
... View more
12-11-2012
02:04 PM
|
0
|
0
|
1637
|
|
POST
|
have you seen our sample which uses a mapClick to query for polygons and then finds adjacent polygons? you can try adapting it to only complete the first step.
... View more
12-11-2012
07:14 AM
|
0
|
0
|
591
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-16-2014 02:35 PM | |
| 1 | 03-15-2013 04:25 PM | |
| 1 | 06-01-2016 10:51 AM | |
| 1 | 12-28-2015 04:46 PM | |
| 1 | 12-28-2015 05:26 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|