|
POST
|
Thanks. Hopefully Esri will add an official parameter to the API sometime.
... View more
09-30-2013
02:22 AM
|
0
|
0
|
1069
|
|
POST
|
The new Home button automatically inserts a div into the page with these values: <div class="homeContainer"> <div class="home" data-dojo-attach-event="ondijitclick:home" role="button" title="Default extent" data-dojo-attach-point="_homeNode"> <span>Home</span> </div> </div> Is it possible to modify the title text ("Default extent")? If not, could we have this added as a parameter during construction? Thanks, Steve
... View more
09-29-2013
05:17 PM
|
0
|
3
|
2109
|
|
POST
|
the snippets that you've posted look correct so presumably there's something else in your code which is causing the problem. Can you link to your live site, or put the complete example on JS Fiddle, etc?
... View more
09-16-2013
04:22 AM
|
0
|
0
|
1146
|
|
POST
|
If it is cumpulsory to use proxy, please give me the steps to configure it properly. See the help file entry Using the proxy page for instructions on setting up the proxy, which is likely to be required for this task.
... View more
09-16-2013
04:19 AM
|
0
|
0
|
564
|
|
POST
|
How would you write this if you wanted to query using a second attribute as well? You could use something like:
query.where ="STATE_NAME like '%" + stateName.toUpperCase() +"'% AND SECOND_ATTRIBUTE like %" + secondValue.toUpperCase() + "%"
(I haven't verified that it all balances out, but the key thing is to use an AND statement in the URL query).
... View more
09-10-2013
04:18 AM
|
0
|
0
|
2113
|
|
POST
|
I do NOT need the infoWindow but I can't figure out how to turn it off. Have you specified an infoTemplate for the featureLayer? The template that defines the content to display in the map info window when the user clicks on a feature. If not specified, the info window will not be displayed. If this is defined, then it will show when you click on the feature layer's features.
... View more
09-08-2013
06:21 AM
|
0
|
0
|
1088
|
|
POST
|
Instead of: myQuery = new Query(); myQuery.text = stateName; myQuery.text = stateAbr; use myQuery.where and specify a SQL statement. It'll be something like myQuery.where = "stateName = 'California' AND stateAbr = 'CA'"
... View more
09-07-2013
12:00 PM
|
0
|
0
|
743
|
|
POST
|
There's a sample Display Context Menu which shows how to do this.
... View more
09-07-2013
11:55 AM
|
0
|
0
|
814
|
|
POST
|
what, if anything do I need to change in my code now that I have an account?...how would anyone even know I'm accessing the API legally? As far as I know, you don't need to make any changes to your code. I think the legal threat would only be raised if you were doing something evil with the API. Basically, you've just purchased a license, which you can show if anyone asks.
... View more
09-07-2013
10:50 AM
|
0
|
0
|
523
|
|
POST
|
I'm trying to learn about secure layers with a token so I'm checking out the IdentityManager sample. Either I don't get it, or the sample is broken. Whether or not I enter a valid password, I see the same layers (you need to zoom out/pan right to see the polygons, which I presume are from the "secure" layer). The source shows the layer https://servicesbeta.esri.com/ArcGIS/rest/services/SanJuan/TrailConditions/FeatureServer/0 - entering a valid password shows "invalid URL" since this service doesn't exist. It appears the correct path is https://servicesbeta.esri.com/ArcGIS/rest/services/SanJuan/Trails/MapServer - I can't see anything in the REST API which shows whether or not these layers are secured and therefore require a login. Anyway, the sample seems to be broken - unless I'm missing something. Thanks, Steve
... View more
08-27-2013
03:11 AM
|
0
|
0
|
828
|
|
POST
|
The answer to the first problem came via some help from GIS.StackExchange user oyvind. I was sending the XY location for the GetFeatureInfo using evt.screenX and evt.screenY. This was subtly different from evt.screenPoint.x and evt.screenPoint.y
... View more
08-24-2013
12:58 AM
|
0
|
0
|
1958
|
|
POST
|
I've added a WMS layer to a Web Mercator map, using the new esri.layers.WMSLayer() method, and now I'm attempting to set up an Identify function to return the WMS layer's values when the user clicks on the map. I'm running a GetFeatureInfo request using the current map extent (in Web Mercator) and the location clicked. This works correctly if I click in the middle of a polygon - but in many cases the returned value is incorrect, and represents an adjacent polygon. See the sample page here - if you click on the "C" of "Clamgoose Lane" the returned value is the 011C polygon, when the correct value should be 010B. Firebug shows the GetMap request is: BBOX=-224655.00820762033,6981963.631850611,-220642.0642225429,6984051.318185706 CRS=EPSG:102100 FORMAT=image/png HEIGHT=874 LAYERS=0 REQUEST=GetMap SERVICE=WMS STYLES= TRANSPARENT=TRUE VERSION=1.3.0 WIDTH=1680 while the GetFeatureInfo request is: BBOX=-224655.00820762033,6981963.631850611,-220642.0642225429,6984051.318185706 BGCOLOR=0xFFFFFF FORMAT=text/xml HEIGHT=874 LAYERS=0 QUERY_LAYERS=0 REQUEST=GetFeatureInfo SERVICE=WMS SRS=EPSG:102100 STYLES= TRANSPARENT=TRUE VERSION=1.1.1 WIDTH=1680 X=640 Y=431 https://mapping.statistics.gov.uk/arcgis/services/LSOA/LSOA_2011_EW_BFC/MapServer/WMSServer?= I noticed that the version (1.3.0 vs 1.1.1) and the spatial reference (CRS vs SRS) differs between the requests, but when I try using the 1.3.0 syntax on the GetFeatureInfo request, I get an error message saying that the format is invalid. Here is the request that I'm trying, and the response: Parameter 'InfoFormat' contains unacceptable value. What is the correct syntax for a GetFeatureInfo request using version 1.3.0? Why would the result be slightly inaccurate, ie showing the adjacent polygon? It's almost like there's a datum shift? Thanks, Steve
... View more
08-22-2013
11:29 PM
|
0
|
1
|
5387
|
|
POST
|
Hi Shreyas, Thanks for the response. You can see the 404's because there is no labels at those scales, as you go deeper you will not notice these errors. I have to say that this sounds like a bug. If a layer is outside its scale range, it shouldn't be throwing a 404. While I could add the reference and background layers separately, the API gives us the option of adding the "gray layer" on map initiation using the "gray" keyword. No other layer type gives an error message at certain scales. Cheers, Steve
... View more
08-15-2013
10:04 PM
|
0
|
0
|
1045
|
|
POST
|
you don't need to use esri.request, just listen for the layer 'onLoad' event and then the initialExtent is a property of the layer. Hi John, I'm actually using esri.request to retrieve additional properties of the service (this is just a cut-down version for repro purposes) - but that's a good tip. Cheers, Steve
... View more
08-15-2013
09:08 AM
|
0
|
0
|
2982
|
|
POST
|
This may be a question for the ArcGIS Server team (not JS API) but I'll ask it here anyway. There seems to be a problem with the gray basemap at the moment. I'm getting loads of NetworkError: 404 Not Found - http://server.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Reference/MapServer/tile/1/1/1 messages. You can reproduce this using the sandbox sample http://developers.arcgis.com/en/javascript/sandbox/sandbox.html?sample=map_simple with options:
map = new Map("map", {
basemap: "gray",
zoom: 1
});
... View more
08-15-2013
04:34 AM
|
0
|
2
|
1813
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-17-2014 08:45 PM | |
| 1 | 03-15-2011 04:23 PM | |
| 1 | 10-18-2019 12:50 AM | |
| 3 | 01-22-2019 02:33 PM | |
| 1 | 09-26-2011 10:36 PM |
| Online Status |
Offline
|
| Date Last Visited |
10-20-2022
12:19 AM
|