|
POST
|
typically if you wrap up any code which instantiates esri objects in an init function, you're safe. check out this forum thread for more info. if you're only seeing errors in production i may have been off base...
... View more
04-15-2013
03:56 PM
|
0
|
0
|
1346
|
|
POST
|
looking through the REST help for the Solve operation, it doesn't look like it. there seem to be more options for restrictions than for "forcing"
... View more
04-15-2013
03:43 PM
|
0
|
0
|
897
|
|
POST
|
currently dynamic text tags in template map documents are not exposed to the services.
... View more
04-15-2013
12:55 PM
|
0
|
0
|
666
|
|
POST
|
hi karen, in your code you are passing latitude then longitude in the point constructor. you actually need to pass the longitude (X) first.
new esri.geometry.Point(lat, lon...
//should be
new esri.geometry.Point(lon, lat...
heres an example that works in all major browsers <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=7, IE=9, IE=10">
<!--The viewport meta tag is used to improve the presentation and behavior of the samples
on iOS devices-->
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
<title>Topographic Map</title>
<link rel="stylesheet" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.4/js/dojo/dijit/themes/claro/claro.css">
<link rel="stylesheet" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.4/js/esri/css/esri.css">
<style>
html, body { height: 100%; width: 100%; margin: 0; padding: 0; }
#map{
padding:0;
}
</style>
<script>var dojoConfig = {parseOnLoad: true};</script>
<script src="http://serverapi.arcgisonline.com/jsapi/arcgis/3.4/"></script>
<script>
dojo.require("dijit.layout.BorderContainer");
dojo.require("dijit.layout.ContentPane");
dojo.require("esri.map");
var map;
function init() {
map = new esri.Map("map", {
basemap : "topo",
center : [-122.41, 37.75],
zoom : 14
});
dojo.connect(map, "onLoad", addGraphic);
}
function addGraphic() {
//don't forget that you add (long, lat) for new point geometries, not (lat, long)
var point = new esri.geometry.Point(esri.geometry.geographicToWebMercator(new esri.geometry.Point(-122.41, 37.75, new esri.SpatialReference({
wkid : 4326
}))));
var symbol = new esri.symbol.PictureMarkerSymbol({
"angle" : 0,
"xoffset" : 0,
"yoffset" : 12,
"type" : "picturemarkersymbol",
"url" : "http://pablotron.org/files/blah.png",
"contentType" : "image/png",
"width" : 32,
"height" : 37
});
var graphic = new esri.Graphic(point, symbol);
map.graphics.add(graphic);
}
dojo.ready(init);
</script>
</head>
<body class="claro">
<div data-dojo-type="dijit.layout.BorderContainer"
data-dojo-props="design:'headline', gutters:false"
style="width: 100%; height: 100%; margin: 0;">
<div id="map"
data-dojo-type="dijit.layout.ContentPane"
data-dojo-props="region:'center'">
</div>
</div>
</body>
</html>
... View more
04-15-2013
12:47 PM
|
0
|
0
|
634
|
|
POST
|
for 10.1 dynamic layers you can decide whether or not you'd like to show labels by setting the showLabels property of the LayerDrawingOptions class
... View more
04-15-2013
12:25 PM
|
0
|
0
|
1390
|
|
POST
|
our locatorTask includes an addressesToLocations() method which would allow you to batch geocode against ArcGIS Server 10.1, but geocoding services return a collection of JSON features which are typically handled as graphics in memory in JavaScript applications. if you want to take CSV and write out a flat file (like shapefile) instead, you'd be better off publishing your own geoprocessing service which calls a model which does the geocoding and writes an output file which can be downloaded from within your application. we don't have any examples of that exact workflow, but you might want to check out this sample to see how geoprocessing services are called and how flat files can be made accessible.
... View more
04-15-2013
12:20 PM
|
0
|
0
|
1478
|
|
POST
|
are you seeing the error on pageLoad? do you have any code referencing esri namespaces that fires before the DOM has initialized?
... View more
04-12-2013
03:24 PM
|
0
|
0
|
1346
|
|
POST
|
its certainly possible, but we don't have any pre-baked samples that demonstrate exactly what you are trying to do. when you choose the county from your dropdown list are you trying to identify other features or just display a popup for the county itself? do you have a simplified you can share so that we can take a look at what you have so far?
... View more
04-12-2013
03:14 PM
|
0
|
0
|
612
|
|
POST
|
the widget doesn't expose the results in a way that makes their display configurable. in order to get more fine grained control, you'd have to make your own calls to a geometry service instead (like in this example)...
... View more
04-12-2013
03:04 PM
|
0
|
0
|
515
|
|
POST
|
we don't have any pre-baked samples which demonstrate this entire workflow. if you're looking for a way to isolate the range of values which don't include the zeros, you might consider using QueryTask to execute a query which returns sorted features where FIELD > 0 (like this...)
... View more
04-11-2013
02:51 PM
|
0
|
0
|
1084
|
|
POST
|
probably a better question for the Desktop/Server forum?
... View more
04-11-2013
08:39 AM
|
0
|
0
|
1327
|
|
POST
|
glad to hear it. sounds like you might want to check the geometry in Desktop...
... View more
04-10-2013
12:06 PM
|
0
|
0
|
1948
|
|
POST
|
featureLayer? if so, what is the draw mode? can you see any failed requests in the network traffic (use browser developer tools) perhaps you've hit the default limit of features ArcGIS Server will return? if none of these suggestions help, taking a look at the live site would probably be helpful
... View more
04-10-2013
10:12 AM
|
0
|
0
|
1948
|
|
POST
|
i still haven't figured out how to get my proxy to generate a token dynamically, but i was able to hard-code a long term token generated using a referrer and confirm that it allowed me to route without authenticating in my app. these are the steps i used. 1. ensured that the following two urls are listed as acceptable in my proxy.config <serverUrl url="http://route.arcgis.com/arcgis/rest/services/"
matchAll="true">
</serverUrl>
<serverUrl url="http://www.arcgis.com/sharing/"
matchAll="true">
</serverUrl> 2. run the app and allow the identity manager to challenge and force a request to generate a token 3. intercept the request in fiddler, right click, select "replay" and then "reissue and edit" *this gives you a chance to specify a longer timeout and alter the referrer if desired 4. place this new token in the proxy.config <serverUrl url="http://route.arcgis.com/arcgis/rest/services/"
matchAll="true"
token="myreallylongtoken">
</serverUrl> 5. afterward my app routed without a challenge this process would be quite a bit more straightforward if there were a webpage where you could go to POST a request for a long-term token, but im guessing they disabled this option to minimize the proliferation of tokens (since this could deplete service credits)
... View more
04-10-2013
09:03 AM
|
0
|
0
|
3202
|
| 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
|