|
POST
|
absolutely doable in a JavaScript application. you'll need to pass the results from geocoding to a spatial queryTask. check out the following samples to get started... geocoder widget http://developers.arcgis.com/en/javascript/jssamples/locator_simple.html use the results of one task as input to another task http://developers.arcgis.com/en/javascript/jssamples/query_gpresult.html
... View more
06-11-2013
07:04 AM
|
0
|
0
|
996
|
|
POST
|
the functionality you need to take advantage of is the same as someone who needs to redefine the symbology of one or many layers entirely. this means you have to create a new layerDrawingOption and assign it the appropriate transparency. you don't necessarily have to redefine renderers for any layers, but you have to include a layerDrawingOption for any layer that needs to be drawn. i wrote up a quick fiddle which shows how to pass one layer "as is" and another with a new renderer and transparency set. you could skip the custom renderer if you wanted....
... View more
06-07-2013
09:10 AM
|
0
|
0
|
1224
|
|
POST
|
our basemaps look clearest at the exact scale levels at which they were cached. because of this, you will get the best results in print output if you ensure that preserveScale is set to true within your PrintTemplate (as opposed to prioritizing a matching extent).
... View more
06-07-2013
07:53 AM
|
0
|
0
|
1445
|
|
POST
|
when your map is being drawn with a spatialReference other than web mercator, you need to create a point object (with the same spatialReference) and pass the point as the center in the map constructor. var renesPoint = new esri.geometry.Point(762120, 4286928, new esri.SpatialReference({ wkid: 26915 })); ... center: renesPoint
... View more
06-06-2013
03:29 PM
|
1
|
0
|
1700
|
|
POST
|
my understanding is that the data is not available in vector format (as it is licensed from a variety of sources). are you seeing problems with print quality when working with them as ArcGISTiledMapServiceLayers?
... View more
06-06-2013
03:25 PM
|
0
|
0
|
1445
|
|
POST
|
the short answer is, you can't resolve the error. these are normal messages to see in the console when working with any web server that does not support CORS, based on our check to see if it can be utilized.
... View more
06-06-2013
03:23 PM
|
0
|
0
|
1539
|
|
POST
|
shameless plug for the little utility app i wrote to help define map constructor options.. (because it demonstrates what you need to do, and just in case thats why you need the info :))
... View more
06-06-2013
02:07 PM
|
0
|
0
|
1748
|
|
POST
|
you're very welcome. please feel free to mark Adam's post as the answer.
... View more
06-05-2013
01:45 PM
|
0
|
0
|
2959
|
|
POST
|
just to clarify, when you load the sample application in chrome using HTTP, the identity manager request to generate a token still goes out over HTTPS. im not sure why this does not happen in IE, but i'd tend to speculate that its a limitation of the browser. 🙂
... View more
06-05-2013
07:10 AM
|
0
|
0
|
1252
|
|
POST
|
to solve this problem you have to dig into the results in order to get a reference to the geometry of the returned polygon itself (ie. "results" is a generic featureset, "results.features" is an array of graphics and "results.features.geometry" is a geometry object for a specific graphic, where "i" refers to the index position of the item within an array). in order to use our utility method to return the extent of a collection of graphics, you would do this var extent = esri.graphicsExtent(results.features); here's how to retrieve the same extent by calling the getExtent method of a single polygon geometry object (this works because there was only one graphic in the array) //features[0] will always be the first item in an array
var extent = results.features[0].geometry.getExtent();
map = new esri.Map("map",{ basemap: "topo", extent: extent }); here's how you use the polygon geometry to retrieve a valid point from within the geometry instead //in order to call the getPoint method of a polygon geometry object, you have to pass index positions to articulate which ring and specific point you want
centerPoint = results.features[0].geometry.getPoint(0,0);
map = new esri.Map("map",{ basemap: "topo", center:centerPoint, zoom:13 }); i've always found it really helpful to set breakpoints within the callback so that i can inspect the results and use the console interactively to figure out how to get a reference to exactly what i need so that i can go back afterwards and modify the source code [ATTACH=CONFIG]24992[/ATTACH] hopefully all that helps!
... View more
06-04-2013
01:22 PM
|
0
|
0
|
2959
|
|
POST
|
have you seen the following article? what exactly are you having difficulty with?
... View more
06-04-2013
12:51 PM
|
0
|
0
|
574
|
|
POST
|
a multipoint is a single feature with multiple geometries, so you can't change the symbology of a single marker unless you convert to a regular point.
... View more
06-04-2013
12:23 PM
|
0
|
0
|
898
|
|
POST
|
it wouldn't be impossible to accomplish this, but the graphic returned by the GraphicsLayer onClick event does not expose the corresponding featureLayer name. perhaps this? var template = new esri.InfoTemplate();
var featureLayer = new esri.layers.FeatureLayer("http://servicesbeta.esri.com/ArcGIS/rest/services/SanFrancisco/SFStreetTreesRendered/MapServer/0",{
id: "My Feature Layer Name",
mode: esri.layers.FeatureLayer.MODE_SELECTION,
outFields: ["*"],
infoTemplate:template
});
//first pass infoTemplate, then instantiate feature layer, then set title using id
template.setTitle(featureLayer.id);
... View more
06-04-2013
12:18 PM
|
0
|
0
|
1885
|
|
POST
|
here is a link to a sample which uses a barChart within a popup.
... View more
05-20-2013
10:42 AM
|
0
|
0
|
507
|
| 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
|