|
POST
|
my pleasure Christopher. if you have a chance, please consider marking this thread as 'answered'
... View more
05-06-2014
01:39 PM
|
0
|
0
|
843
|
|
POST
|
hi lars, i'd have to check with the team to make sure, but i'm under the impression that Safari for Windows (which appears to be no longer in active development) is not supported by our API.
... View more
05-05-2014
07:36 AM
|
0
|
0
|
801
|
|
POST
|
hi christopher, you were incredibly close, i only had to make two changes 1. your code was throwing an "unexpected token '}'" error in the console at line 56 because you had an unmatched curly brace and parenthesis at the bottom of your code. 2. i moved the geocoder and home button widget instantiation to happen inside the createMap() callback, because otherwise they were getting called before there was actually a map available.
<!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>Web Map</title>
<link rel="stylesheet" href="http://js.arcgis.com/3.9/js/esri/css/esri.css">
<style>
html, body, #map {
height:400px;
width:100%;
margin:0;
padding:0;
}
#HomeButton {
position: absolute;
top: 95px;
left: 20px;
z-index: 50;
}
#search {
display: block;
position: absolute;
z-index: 2;
top: 20px;
left: 74px;
}
</style>
<script src="http://js.arcgis.com/3.9/"></script>
<script>
var map,
webmapId = "1a40fa5cc1ab4569b79f45444d728067";
require([
"esri/map",
"esri/arcgis/utils",
"esri/dijit/HomeButton",
"esri/dijit/Geocoder",
"dojo/domReady!"
], function (Map, arcgisUtils, HomeButton, Geocoder) {
arcgisUtils.createMap(webmapId, "map").then(function (response) {
map = response.map;
var home = new HomeButton({
map : map
}, "HomeButton");
home.startup();
var geocoder = new Geocoder({
map : map
}, "search");
geocoder.startup();
});
});
//});
</script>
</head>
<body>
<div id="map" class="map">
<div id="HomeButton"></div>
<div id="search"></div>
</body>
</html>
... View more
05-02-2014
11:00 AM
|
0
|
0
|
843
|
|
POST
|
hi william, you'll need to use featureLayer.selectFeatures() to query for the graphic of interest. the 'selection-complete' event (or deferred callback for the method) will give you a reference to the selected features. at that point you'll need to construct a new geometry object with the points from the input textbox and set that as the geometry property for your feature before making a call to featureLayer.applyEdits() to update it in the service itself. if you get stuck, please feel free to post a fiddle. i'd be happy to take a look.
... View more
05-02-2014
10:50 AM
|
0
|
0
|
1325
|
|
POST
|
hi kevin, back in 2013, when i wrote that post, the documentation on that page listed "IE7-IE10". The page was updated when we introduced official support for IE11.
... View more
04-30-2014
07:27 AM
|
0
|
0
|
1689
|
|
POST
|
haha. perhaps im missing something, but why not just use graphicsUtils.graphicsExtent() ?
... View more
04-28-2014
02:01 PM
|
0
|
0
|
3024
|
|
POST
|
adrian, as per the online documentation, the measurement widget will use geometry service (if provided) to reproject input geometries prior to calculating measurements. Measuring distances and areas when your map uses the Mercator projection http://blogs.esri.com/esri/arcgis/2010/03/05/measuring-distances-and-areas-when-your-map-uses-the-mercator-projection/
... View more
04-28-2014
08:50 AM
|
0
|
0
|
2823
|
|
POST
|
in order to retrieve supporting files for any sample application, you can click 'Download as a zip file' on its landing page.
... View more
04-28-2014
07:50 AM
|
0
|
0
|
926
|
|
POST
|
Yamunadevi, are you talking about an error similar to the one seen in this sample? XMLHttpRequest cannot load http://arcgis.storymaps.esri.com/ArcGIS/rest/info?f=json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://developers.arcgis.com' is therefore not allowed access. if so, thats a normal check made by the API to see whether the remote server supports CORS.
... View more
04-25-2014
10:09 AM
|
0
|
0
|
886
|
|
POST
|
our JavaScript API doesn't include any convenience classes or widgets to quickly instantiate a toolbar with all those tools. i haven't heard of any relevant third party plugins either.
... View more
04-25-2014
10:03 AM
|
0
|
0
|
750
|
|
POST
|
just to pile on... when each individual module is loaded, its own dependencies are resolved automatically by the dojo loader, and additional requests for supporting code are made automatically, if necessary. the require callback isn't triggered until all the asynchronous responses have been received. this allows us to load modules in whatever order we like.
... View more
04-25-2014
09:54 AM
|
0
|
0
|
1234
|
|
POST
|
if you'd like to create an empty array object, you should be using brackets. curly braces are reserved for object literals. var allFeatures = [];
//not
var allFeatures = {}; not sure if that explains why what you have is empty later though..
... View more
04-24-2014
08:11 AM
|
0
|
0
|
1131
|
|
POST
|
hi all, ive had a few people curious about getting the directions widget to support adding stops by clicking on the map itself so i put together a basic sample in case anyone wants to check it out http://johngravois.com/maps/directions-click.html (just an fyi, you'll have to sign in to ArcGIS Online to do the actual routing)
... View more
04-17-2014
02:37 PM
|
2
|
16
|
9978
|
|
POST
|
gloria, i'm not sure if your own scripts were located somewhere different with respect to your html file on your own web server, but i was able to see a map in your application after: 1. creating another folder inside the application folder called 'scripts' and moving the .js files inside: yourfolder/test 12.html yourfolder/scripts/ToolsGeoRoute.js 2. modifying the paths in 'test 12.html' to acknowledge this change and point to the files in a scripts folder one level deeper than where the .html file is <script type="text/javascript" src="scripts/ToolsGeoRoute.js"></script> additionally, i commented out the map initialization inside ToolsGeoRoute.js, because you are already creating a map in toggle.js
function init() {
/*map = new esri.Map("map", {
extent: new esri.geometry.Extent({"xmin":-83.5528,"ymin":31.7627,"xmax":-77.3874,"ymax":35.5635,"spatialReference":{"wkid":4326}})
});*/
hope that helps!
... View more
04-17-2014
11:28 AM
|
0
|
0
|
1472
|
|
POST
|
hi gloria, its hard to say without seeing your code, but from the sounds of it you have to make sure you are only instantiating a single map object in your application. ie: only one call like this var map = new esri.Map(... if you'd like to upload a .zipped copy of the app, i'd be happy to try and help further.
... View more
04-17-2014
10:55 AM
|
0
|
0
|
1472
|
| 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
|