|
POST
|
I wrote a web application about a year ago that uses the HTML canvas to create a thumbnail image of a map. WSDOT-GIS/arcgis-map-thumbnail-builder · GitHub
... View more
10-02-2015
09:03 AM
|
3
|
4
|
2563
|
|
POST
|
Another approach would be to use a function instead of a template string. (See Using Custom Functions section here.) Inside of the function, use document.createElement and element.appendChild to construct your DOM elements. After you've used created your Button element, use addEventListener to set the button's "click" event.
... View more
09-28-2015
10:24 AM
|
2
|
3
|
2311
|
|
POST
|
I made a few minor improvements / modifications to your sample. Updated to ArcGIS API v3.14. Replaced some dojo-specific methods (query and css class manipulation) with browser built-in equivalents. Removed reference to "dojo/on" module. Replaced with Moveable.on(). Modified CSS to remove use of !important. Removed duplicate variable declaration. body, html {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
#map {
height: 100%;
width: 100%;
margin: 0px;
}
.esriPopupWrapper .title {
cursor: move;
}
.esriPopup .pointer.hidden {
display: none;
} require([
'esri/arcgis/utils',
'dojo/dnd/Moveable'
], function (
arcgisUtils,
Moveable
) {
var webMapItemID = "fe0827dfea2441f5b206b0e2c37b79cd";
arcgisUtils.createMap(webMapItemID, "map", {}).then(function(response) {
var map = response.map;
var handle = map.infoWindow.domNode.querySelector(".title"); //query(".title", map.infoWindow.domNode)[0];
var dnd = new Moveable(map.infoWindow.domNode, {
handle: handle
});
// when the infoWindow is moved, hide the arrow:
dnd.on('FirstMove', function() {
// hide pointer and outerpointer (used depending on where the pointer is shown)
var arrowNode = map.infoWindow.domNode.querySelector(".outerPointer");
arrowNode.classList.add("hidden");
arrowNode = map.infoWindow.domNode.querySelector(".pointer");
arrowNode.classList.add("hidden");
}.bind(this));
});
});
... View more
09-23-2015
05:30 PM
|
2
|
1
|
3181
|
|
POST
|
In addition to the 3D sample Rickey Fite provided, here is one with a 2D map. You can rotate the map by holding down the middle button (i.e., the mouse wheel).
... View more
09-23-2015
05:26 PM
|
1
|
1
|
1254
|
|
POST
|
Terraformer will allow you to convert between GeoJSON and ArcGIS JSON formats.
... View more
09-16-2015
05:05 PM
|
0
|
2
|
1356
|
|
POST
|
Since this forum is for the ArcGIS API for JavaScript, it's likely that no one here will know the answer. Try posting in Geoprocessing.
... View more
09-15-2015
11:21 AM
|
0
|
1
|
1724
|
|
POST
|
Is your ultimate goal to display the data on a map in a web application using ArcGIS for JavaScript? This is what I would do... Put your JSON in the same directory on the web server as the rest of your web application. In your JavaScript code, use dojo/text to import the JSON file as a text string. Use JSON.parse to convert the JSON text into an array of Feature objects. The "reviver" function parameter should do the following: Check to see if the current value is an object with properties named "geometry" and "attributes". Create a Graphic using the Graphic(json) constructor. Test to see if your geometry can be projected to Web Mercator using webMercatorUtils. If the test returns true, use the webMercatorUtils.project function to project the Graphic's geometry. If false, (meaning your spatial reference isn't supported by webMercatorUtils) use proj4js to do the projection. (Once you've determined which method you need to use, you can remove the test code and go directly to the projection code.) The reviver function should return the projected graphic. Create a new FeatureLayer object. Use your array of features from the previous step to create an object for the featureCollectionObject parameter.
... View more
09-14-2015
09:37 AM
|
0
|
4
|
1724
|
|
POST
|
Can you put your code on JSFiddle or Plunker? If people can see your code running in such an environment it will be a lot more likely that someone will figure out the problem.
... View more
09-10-2015
02:29 PM
|
0
|
1
|
1444
|
|
POST
|
By default (using Esri's World Geocoding service) it looks like you are required to enter the city along with the intersection. As far as I know, the only way around this is to host your own geocoding service, and thus you would need create a custom address locator which would only require the user to enter streets.
... View more
09-01-2015
09:58 AM
|
1
|
3
|
2190
|
|
POST
|
james a, you'll need to be more specific about what you are trying to do before anyone will be able to help you.
... View more
09-01-2015
09:06 AM
|
0
|
5
|
2190
|
|
POST
|
The help says you should be able to access it with either an ArcGIS for Developers account or an ArcGIS Online organization account. You are also supposed to be able to use your own modules via package.json files. I haven't personally done this so I can't tell you if everything actually works as advertised.
... View more
08-24-2015
12:12 PM
|
0
|
0
|
1452
|
|
POST
|
You're supposed to be able to do that with http://jso.arcgis.com/
... View more
08-21-2015
08:31 AM
|
0
|
2
|
1452
|
| 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 |