|
POST
|
This document describes what you are allowed to do with free vs. paid ArcGIS Online Geocode services. If you are using your own geocoding services then, of course, this does not apply to you. Another alternative is the MapQuest Open Geocoding API Web Service.
... View more
09-05-2014
02:27 PM
|
0
|
2
|
3649
|
|
POST
|
Have you tried the ArcGIS API for JavaScript Web Optimizer?
... View more
09-04-2014
01:00 PM
|
0
|
0
|
2628
|
|
POST
|
I've seen a lot of broken links from posts that predate the current GeoNet forums.
... View more
09-02-2014
10:16 AM
|
0
|
0
|
924
|
|
POST
|
require([
"esri/arcgis/utils",
"dojo/dnd/Moveable"
], function (arcgisUtils, Movable) {
"use strict";
var mapId = "bc6e18b0c332407e800c234de472939f"; // Replace with your own map ID from ArcGIS.com.
/**
* Makes the popup draggable.
* @returns {dojo/dnd/Movable}
*/
function makePopupDraggable(){
var popupDiv = document.querySelector(".esriPopup");
var dnd;
if (popupDiv) {
dnd = new Movable(popupDiv);
}
// TODO: Figure out how to make the little arrow point the right way after dragging.
return dnd;
}
arcgisUtils.createMap(mapId, "map", {
usePopupManager: true,
mapOptions: {
center: [-120.80566406246835, 47.41322033015946],
zoom: 7,
minZoom: 7
}
}).then(makePopupDraggable);
});
... View more
08-27-2014
03:12 PM
|
1
|
1
|
2672
|
|
POST
|
Asrujit SenGupta, it worked when I did it from ArcCatalog. Weird.
... View more
08-19-2014
11:40 AM
|
0
|
0
|
1597
|
|
POST
|
When I try to register a database by importing a .sde file through the server manager web application, I get the following (not at all helpful) error message:
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Why is this the import failing?
... View more
08-18-2014
05:33 PM
|
0
|
6
|
4353
|
|
POST
|
You may need this too, depending on if your users want to enter degrees-minutes-seconds: Parse Degrees Minutes Seconds (DMS) into Decimal Degrees
... View more
08-04-2014
11:32 AM
|
0
|
5
|
2015
|
|
POST
|
I hope you get this question answered. I had heard that ArcGIS Pro was meant to replace ArcGIS Explorer Desktop. If an organizational account is required, however, then this is not the case. (Explorer was free and required no special account.)
... View more
07-31-2014
10:16 AM
|
0
|
1
|
726
|
|
POST
|
I've fixed the broken link in my earlier post above.
... View more
07-28-2014
09:00 AM
|
0
|
1
|
1176
|
|
POST
|
This is definitely a bug in Esri's code. According to the documentation: If legendLayers is not specified, all operational layers will be present in the legend. I recently encountered this problem and came up with this function to createLegend Layers.
/**
* Creates an array of LegendLayers of all layers currently visible in the map.
* @param {esri.Map} map
* @returns {esri.tasks.LegendLayer[]}
*/
function getLegendLayersFromMap(map) {
var layer, legendLayer, output = [];
for (var i = 0, l = map.layerIds.length; i < l; i += 1) {
layer = map.getLayer(map.layerIds);
if (layer.visible && layer.visibleAtMapScale) {
legendLayer = new LegendLayer();
legendLayer.layerId = layer.id;
if (layer.visibleLayers) {
legendLayer.subLayerIds = layer.visibleLayers;
}
output.push(legendLayer);
}
}
// Return null if the output array has no elements.
return output.length > 0 ? output : null;
}
// Sample call
var printParameters = new PrintParameters();
printParameters.map = map;
var template = new PrintTemplate();
template.format = "PDF";
// printUI is a custom class in my app that creates and manages the HTML UI for a print task form.
template.layout = printUI.getSelectedTempalteName();
template.layoutOptions = {
authorText:printUI.form.querySelector("input[name=author]").value,
titleText: printUI.form.querySelector("input[name=title]").value,
legendLayers: getLegendLayersFromMap(map)
};
printParameters.template = template;
printTask.execute(printParameters);
... View more
07-16-2014
10:27 AM
|
2
|
2
|
2485
|
|
POST
|
This is great...thanks a lot jacobsj 🙂 this is what i wanted for csv. but still struggling with adding kmz locally. how to convert kmz into kml or unzip kmz and read its contents. Note that I haven't personally used the libraries listed below, but they look like they will do what you want. For unzipping the KMZ archive (which is just a ZIP archive containing KML): zip.js. For converting KML to GeoJSON: mapbox/togeojson. To convert from GeoJSON to ArcGIS JSON: Terraformer.ArcGIS. (This library is written by Esri.)
... View more
06-13-2014
03:28 PM
|
0
|
0
|
2128
|
|
POST
|
You can add local CSV using this library: https://github.com/WSDOT-GIS/CSV-Reader
... View more
06-12-2014
03:29 PM
|
0
|
0
|
2128
|
|
POST
|
This is how I would do it. var img = document.createElement("img");
img.src = "images/test.jpg";
var a = document.createElement("a");
a.href = "foo.html";
a.appendChild(img);
document.getElementById("legendPanel").appendChild(a); Should result in [HTML] <a href="foo.html"><img src="images/test.jpg" /></a> [/HTML]
... View more
06-12-2014
03:25 PM
|
0
|
0
|
1577
|
|
POST
|
If you are using a Dojo theme (e.g., Claro, Soria, Tundra, Nihilo) you can access these icons using classes. For example, the disk icon (save) is accessed by adding the following classes to an HTML element: dijitIcon dijitIconSave E.g., [HTML]<div class="dijitReset dijitInline dijitIcon dijitIconSave" role="presentation" data-dojo-attach-point="iconNode"></div>[/HTML] Unfortunately, I haven't found any good documentation listing the different icons that are available. The best way I've found is to use the DOM inspection tools in either Chrome or Firefox on Dojo's Dijit Theme Tester page to see what icons available.
... View more
06-03-2014
08:01 AM
|
0
|
0
|
674
|
|
POST
|
I guess I don't know exactly how stylesheets work. You can reference more than one and they won't conflict? It is very common for a web page to use more than one CSS file. A rule in later stylesheet (referenced lower in the HTML document) can override a rule set by an earlier one.
... View more
06-03-2014
07:50 AM
|
0
|
0
|
749
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-08-2025 08:56 AM | |
| 2 | 03-05-2024 05:10 PM | |
| 1 | 04-30-2013 08:23 AM | |
| 1 | 05-03-2022 09:45 AM | |
| 1 | 06-30-2015 10:55 AM |