|
POST
|
i just tried standing up our published sample on my own machine, and made sure to reference my own proxy (without bothering to embed a token or credentials in the proxy.config). this caused a security prompt to display in the application when I attempted to calculate a route, which gave me the opportunity to supply my ArcGIS for Organization credentials and get a successful result. [ATTACH=CONFIG]23350[/ATTACH] what happens on your side? can you take a look at the network traffic and check for 404,403 errors etc.?
... View more
04-09-2013
01:28 PM
|
0
|
0
|
3202
|
|
POST
|
im not really sure why the tile handler serves up tiles from both urls (perhaps to distribute load), but i've never seen the same behavior when "services" itself is used to denote the hosted content instead of "server" (because "server.arcgisonline.com" automatically redirects in the browser to "services"). either way, glad my suggestion resolved your problem.
... View more
04-09-2013
12:33 PM
|
0
|
0
|
1731
|
|
POST
|
when querying directly on the layer i.e. not from the application geometry points are returned do you mean that the geometry type for this layer is point? if so, getExtent() is expected to return null, because only polyline, polygon and multipoint geometries have a precalculated extent. as an alternative, you should be able to construct your own extent object using the point geometry of the feature instead (by adding and subtracting fixed values).
... View more
04-09-2013
08:57 AM
|
0
|
0
|
1398
|
|
POST
|
the API reference for the Directions widget can be found here. it will be visible through browsing shortly.
... View more
04-09-2013
08:49 AM
|
0
|
0
|
1478
|
|
POST
|
looks like you've listed "server.arcgisonline.com" as permissible in the proxy.config but not "services.arcgisonline.com"
... View more
04-09-2013
08:45 AM
|
0
|
0
|
1731
|
|
POST
|
if you look at the REST response you can see that "1900 Sw 4th Ave" is returned by the geocoding services rooftop locator and "1900 SW 4th Ave" is returned by the streets locator. Strangely, Using "1901" as an address doesn't cause the same behavior... you could probably use the widget event onAutoComplete to loop through the results and compare them in all caps to remove duplicates, but i'd probably be pretty cool if we did that in the widget source code instead.
... View more
04-05-2013
01:58 PM
|
0
|
0
|
1817
|
|
POST
|
to use your example, if you are loading the US states as a feature layer there is no need to wire up a QueryTask when the map is clicked because the FeatureLayer has already ensured that the graphics have already been downloaded to the client. instead, writing code which listens for the "onClick" event of the FeatureLayer will give you immediate access to the graphic which has been clicked. dojo.connect(myFeatureLayer, "onClick", myFunction);
function myFunction(evt) {
console.log(evt.graphic);
}
... View more
04-02-2013
11:38 AM
|
0
|
0
|
2097
|
|
POST
|
is the feature you are trying to use as clipping geometry being drawn in the app as part of a ArcGISDynamicMapServiceLayer, as a FeatureLayer, or in some other way?
... View more
04-02-2013
09:15 AM
|
0
|
0
|
2097
|
|
POST
|
thanks for clarifying. in this case you shouldn't need to fire a QueryTask to ask the server about a feature under a mouse click because the geometry and attributes of the features have already been downloaded to the client. Because FeatureLayers inherit from GraphicsLayers, the GraphicsLayer "onClick" event will give you access to the feature itself (along with screenPoint and mapPoint).
... View more
04-01-2013
03:05 PM
|
0
|
0
|
2097
|
|
POST
|
the ArcGISDynamicMapServiceLayer.visibleLayers property will return an array of the layerIds which are currently visible. you could loop through those results and pass to a series of QueryTasks, but if the client needs to interact with the geometry from all these individual layers (and perhaps even send a featureSet back to ArcGIS Server), maybe it would be more convenient to work with FeatureLayers and skip the Querying altogether instead?
... View more
04-01-2013
01:57 PM
|
0
|
0
|
2097
|
|
POST
|
you have an event wired up to display popups when people mouse over the buildings, now you just need to add another one to listen for when the mouse leaves dojo.connect(featureBldgLayer, "onMouseOut", function(evtBldg) { dijit.popup.close(); });
... View more
03-27-2013
02:27 PM
|
0
|
0
|
1417
|
|
POST
|
i can't find the border-color issue you're talking about in our esri.css. [ATTACH=CONFIG]23012[/ATTACH] which element did you see the problem in?
... View more
03-27-2013
12:21 PM
|
0
|
0
|
1794
|
|
POST
|
i don't understand the exact code logic enough to explain why what you already tried doesn't work, but for code that needs the map to be loaded, I've always had good luck placing it right inside the initUI() function. function initUI(response) {
dojo.connect(response.map, "onClick", showCoordinates);
...
function showCoordinates(evt) {
var mp = esri.geometry.webMercatorToGeographic(evt.mapPoint);
alert(mp.x.toFixed(3) + ", " + mp.y.toFixed(3));
}
... View more
03-26-2013
04:37 PM
|
0
|
0
|
1029
|
| 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
|