Tag Info

Hot answers tagged

4

Creating a 3km radius circle is quite easy in ArcGIS: Create a point featureclass marking the center of your area of interest. Use the Buffer (Analysis) tool to create the 3km radius buffer around the point featureclass.


3

The map object will take on the projection of the first layer you add to it, in the case of your code, the streets basemap is 102100 (web mercator). You have two options to solve this: Use your own basemap service that is in your 102726 projection so that the points from the web service show up in the correct place. Stick with arcgis online basemaps, ...


2

You can combine the two layers as a single Basemap and pass them to the map constructor. Below is a full working example using the two layers you are interested in. This came from a discussion we had over on github related to using non-mercator maps as basemaps for the Configurable Map Viewer (cmv) that is based on the ESRI JS API. This does not fully ...


1

Add the graphics to a graphicsLayer, and listen for this layer's mouse-over event to detect when the hover starts. Listen for the mouse-out event to detect when the user's mouse has left the graphic (in which case you may want to close the infoWindow). There's a sample here which demonstrates this, albeit in a slightly more complicated manner.


1

Here are a couple of possible examples. JSTS Topology Suite The JSTS Topology Suite is a JavaScript library of spatial predicates and functions for processing geometry conforming to the Simple Features Specification for SQL published by the Open Geospatial Consortium. JSTS Topology Suite is also a JavaScript port of the well established Java library JTS ...


1

You can access the features of the service by adding one of the service's layers as a feature layer to the map. See: http://jsfiddle.net/a0heum8w/ From there, you should be able to use a renderer to control the symbols used to draw the polygons: https://developers.arcgis.com/javascript/jssamples/#search/renderer


1

The OpenStreetMap tiles are pre-rendered in Web-Mercator (i.e. EPSG:3857) and hence you can't get them in your projection, and show it in this map. You have two options: Tile your data in Web Mercator Download OSM data, and then create tiles for it your Projection.


1

When solving it programmatically I would start with this Snippet from ESRI: Create Graphic Buffers around Selected Features Snippet: ///<summary>Draws graphic buffers around the selected features in the map using distance units specified.</summary> /// ///<param name="activeView">An IActiveView interface.</param> ///<param ...


1

You can only use the Esri pre-canned basemaps ("streets", "satellite", "topo", etc.) in the constructor. If you search the Esri JavaScript code, you can find "Streets" and "Satellite" basemaps defined in the code, but not "Terrain". You don't actually have to specify a basemap in the constructor. In the code example below, I am adding the streets basemap ...


1

The map reference lists the available basemaps which can be specified using the keyword: Valid values are: "streets" , "satellite" , "hybrid", "topo", "gray", "oceans", "national-geographic", "osm". You can add other layers as a basemap by finding their REST endpoint and adding them as a tiled layer. There's a example script here. The Esri Terrain layer ...


1

The answer depends on how robust your KML reader is and what you want to do. I downloaded both kmz files and renamed each file to .zip like you did. They are just zip files after all. I took the section of the code you posted above from <Folder> ... </Folder> and put it in the MD1558.kml file right after the MD1558.kml ... </Folder> ...


1

If the Graphic is added directly to the map, you can just call map.graphics.remove(the_graphic), where the_graphic is the graphic that you want to remove. You can also call map.graphics.clear(); to remove all graphics added in this way. If you have added graphics to a particular graphics layer, then you need to remove the graphic from that particular ...


1

If you don't plan on maintaining/upgrading a web application, its typically a good idea to leave the services that it utilizes alone as well. Because version 1.4 of the Esri JavaScript API was released years and years before ArcGIS Server was re-engineered/redesigned in its current native 64 bit form, there was no way for the developers to ensure that it ...


1

This API link from EPA shows the Watersheds http://watersgeo.epa.gov/arcgis/rest/services/NHDPlus_NP21/WBD_NP21_Simplified/MapServer?f=jsapi - raw ...


1

It looks like you found the service to use ... http://watersgeo.epa.gov/arcgis/rest/services/NHDPlus_NP21/WBD_NP21_Simplified/MapServer/ Just plug that in to one of the many samples available and start from there. Go Here and click "Browse Samples" https://developers.arcgis.com/javascript/ Find one that does something similar to what you want to do (or ...


1

Your query is working fine. The error stack trace you've submitted is pointing to the part of your showResults function where the map's graphics layer is told to clear. The this is usually thrown because the map's graphics layer hasn't loaded, which is probably because the map hasn't finished loading yet. Where you have: query.where = "OBJECTID = 1"; ...


1

This question is a month old so you may have already found options. The Configurable Map Viewer (CMV) sounds like it may meet your needs. CMV is built on top of the ArcGIS API for JavaScript. It is open source so you can edit and tweak if you need something more than what can be configured within the configuration files. We have recently added a number of ...


1

So, after consulting here and on ESRI's GeoNet, I have come to the conclusion that for some reason ArcGIS Server 9.3.1 does not pass the information to the JavaScript API that I require. A user on GeoNet compared their up-to-date server against my slightly aged one. They have the required properties while I do not. Just another reason to convince my boss ...



Only top voted, non community-wiki answers of a minimum length are eligible