|
POST
|
Evelyn, I have a widget for the viewer that does that: http://www.arcgis.com/home/item.html?id=cdac64f40b53435c9b191731fcd3c9c1 You maybe able to adapt the code I'm using to suit your needs. Regards Anthony
... View more
02-05-2014
08:23 AM
|
0
|
0
|
607
|
|
POST
|
Erik, What's the reason why your HyperlinkPDF field doesn't work in your desktop GIS? In arcmap are you setting the hyperlink up as a URL or document: http://resources.arcgis.com/en/help/main/10.1/index.html#//00s500000004000000 You could use attachments but then all your documents will stored in a BLOB field in your database, this does not make it easy to share URLs to individual files to non GIS people. Regards Anthony
... View more
02-04-2014
09:38 AM
|
0
|
0
|
576
|
|
POST
|
Ionara, You need to do a check on the first line so it doesn't get an or added to the front, something like: var defexpr:String = "" for (var i=0, il=fset.attributes.length; i<il; i++) { if (i=0) { defexpr = "OBJECTID" + " =" + fset.attributes.OBJECTID } else { defexpr = defexpr + " or " + "OBJECTID" + " = " + fset.attributes.OBJECTID } } Regards Anthony
... View more
02-04-2014
08:06 AM
|
1
|
0
|
1133
|
|
POST
|
Bryant, It may be to do with the server upgrade that Esri are doing: http://blogs.esri.com/esri/arcgis/2014/01/31/update-maintenance-upgrade-to-arcgis-online-map-servers-next-week/ Regards Anthony
... View more
02-04-2014
06:56 AM
|
0
|
0
|
485
|
|
POST
|
Amy, The source code is available with the download so you could recompile it to work with 3.0 but it is not something I have time to do. Regards Anthony
... View more
02-04-2014
06:47 AM
|
0
|
0
|
1943
|
|
POST
|
Tom, No probs glad you got your solution. Please don't forget to mark the post as answered. Regards Anthony
... View more
02-01-2014
05:29 AM
|
0
|
0
|
1153
|
|
POST
|
Amy, I don't have the exact same widget for older versions as I don't have the time to create widgets for legacy versions. I do still have a widget available that allows you to upload a spreadsheet for version 3.0: http://www.arcgis.com/home/item.html?id=b8d2f6a9063e44669eddfdd2d32244e8 Regards Anthony
... View more
02-01-2014
04:20 AM
|
0
|
0
|
1943
|
|
POST
|
Zack, I have a toolbox that takes a workspace of feature classes and adds a column to each feature class (called orgFilNam 'Original File Name')and populates each feature within each feature class with its filename. It sound similar to what you are after, if you send me a private message with your email address I will forward it on to you. I can't upload it to this post at the moment as I am only on my iPad Regards Anthony
... View more
01-31-2014
06:21 AM
|
0
|
0
|
2139
|
|
POST
|
Jay, Add the showAttribution and logo attributes to your map class, eg: map = new Map("map", { fitExtent: true, showAttribution: false, logo: false, zoom: 10, center: [-78.89433, 35.996321] }); Regards Anthony
... View more
01-31-2014
06:07 AM
|
0
|
0
|
3424
|
|
POST
|
Sam, There is nothing you can do with the configuration files, but if you have the ability to amend the source code then this thread will help you: http://forums.arcgis.com/threads/20799-Restrict-View-Port-Bounds-in-Flex-Viewer-2.x?highlight=constrained+map Regards Anthony
... View more
01-31-2014
06:01 AM
|
0
|
0
|
1184
|
|
POST
|
Sam, The zoom levels of your application are set from the first basemap added so if you swap the order of your base maps so that your imagery is loaded first you will get all your zoom levels. Regards Anthony
... View more
01-31-2014
05:36 AM
|
0
|
0
|
1184
|
|
POST
|
Keal, The MGRS locator you gave used will just give you the military grid reference for each of your points, you need to use the online world geocoding service, but this is by subscription: http://www.arcgis.com/home/item.html?id=305f2e55e67f4389bef269669fc2e284 More info here: http://geocode.arcgis.com/arcgis/index.html#/Batch_geocoding/02q000000004000000/ There are older services around which may still work: http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Address_NA_10/GeocodeServer Regards Anthony P.s. You could always just download a shapefile of the cities and perform some sort of spatial join on your data: http://www.baruch.cuny.edu/geoportal/data/esri/esri_usa.htm
... View more
01-30-2014
08:46 AM
|
0
|
0
|
2370
|
|
POST
|
Li, I would use map.centerAt(graphic.geometry.center). The sample code below allows you to draw a circle and pan to its center.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<title></title>
<link rel="stylesheet" href="https://community.esri.com//js.arcgis.com/3.8/js/esri/css/esri.css">
<style>
html, body, #map {
height: 100%; width: 100%; margin: 0; padding: 0;
}
#controls {
background: #fff;
box-shadow: 0 6px 6px -6px #999;
color: #444;
font-family: sans-serif;
height: auto;
left: 1em;
padding: 1em;
position: absolute;
top: 1em;
width: auto;
z-index: 40;
}
#controls div {
padding: 0 0 1em 0;
}
</style>
<script src="//js.arcgis.com/3.8/"></script>
<script>
var map;
require([
"esri/map", "esri/geometry/Circle", "esri/symbols/SimpleFillSymbol",
"esri/graphic", "esri/layers/GraphicsLayer",
"dojo/dom", "dojo/dom-attr", "dojo/domReady!"
], function(
Map, Circle, SimpleFillSymbol,
Grahpic, GraphicsLayer,
dom, domAttr
) {
map = new Map("map", {
basemap: "streets",
center: [-120.741, 56.39],
slider: false,
zoom: 6
});
var symbol = new SimpleFillSymbol().setColor(null).outline.setColor("blue");
var gl = new GraphicsLayer({ id: "circles" });
var geodesic = dom.byId("geodesic");
map.addLayer(gl);
map.on("click", function(e) {
var radius = map.extent.getWidth() / 10;
var circle = new Circle({
center: e.mapPoint,
geodesic: domAttr.get(geodesic, "checked"),
radius: radius
});
var graphic = new Grahpic(circle, symbol);
gl.add(graphic);
map.centerAt(graphic.geometry.center);
});
});
</script>
</head>
<body>
<div id="map"></div>
<div id="controls">
<div>Click the map.</div>
<input type="checkbox" id="geodesic">
<label for="geodesic">Geodesic?</label>
</div>
</body>
</html>
Regards Anthony
... View more
01-30-2014
05:24 AM
|
0
|
0
|
1174
|
|
POST
|
Tom, What I would do is on load of the widget create 3 graphics layers one for each size, large, medium and small. Add the graphics you want on each layer and add the layers to the map but set the visible attribute of the layer to false. Then all you need to do when the checkbox is selected/deselected is make the corresponding graphics layer visibility equal to the checkbox selected value. Regards Anthony
... View more
01-28-2014
09:05 PM
|
0
|
0
|
1153
|
|
POST
|
Larry, I have logged the issue on GitHub so the developers are made aware: https://github.com/Esri/arcgis-viewer-flex/issues/243 Regards Anthony
... View more
01-27-2014
09:41 AM
|
0
|
0
|
842
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-01-2016 01:57 PM | |
| 1 | 02-04-2013 01:05 AM | |
| 1 | 04-11-2013 09:53 PM | |
| 1 | 04-03-2013 09:42 AM | |
| 1 | 07-25-2014 10:58 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|