|
POST
|
Can you share your code, how you have initialize the Legend widget.
... View more
03-07-2017
06:30 AM
|
0
|
4
|
1418
|
|
POST
|
Hello Evelyn, In ArcGISDynamicMapServiceLayer the data is rendered on the server and only the images are sent to the client, and displayed on the map. So it would be difficult / impossible to identify individual features. Whereas, in FeatureLayer the data is sent to the client and the js api renders the geometries on the map using dojo. since, these geometries are available in the browser, so some dom event can be made available for them like the mouse events. However, you could send a identifytask request to the server onmouse-move event and try to get information when the mouse is over a particular feature(s). But that would be a bad solution/idea as a lot of requests would be sent back and forth on mouse-move, this could affect the performance of the application. I think, showing the Popup on map-click is the best way to go for ArcGISDynamicMapServiceLayer. Hope this was helpful.
... View more
03-07-2017
06:12 AM
|
1
|
1
|
746
|
|
POST
|
Are you sure, the layers 257 to 270 are all displayed. As you have shared the request sent but not the response received. I have seen something similar happen, when I use LayerDrawingOptions. If you are updating a layer drawing option for a particular layer and do not update all the layer properties, i.e just change labelingInfo or transparency of only one or few layers. Then it will get the default properties for other layers, which may be visible = true. But this happens on a very specific condition. Are you using LayerDrawingOptions?
... View more
03-06-2017
07:01 AM
|
0
|
11
|
3073
|
|
POST
|
Hello Niklas, Quick question does the tile images contain these labels and border?
... View more
03-02-2017
06:47 AM
|
0
|
1
|
4342
|
|
POST
|
Abdul, I find that you are using return point.offset(deltaX, deltaY) to move the point. So you don't need to calculate the distance and angle. Since what you need is deltaX and deltaY. you can get them as below. deltaX = targetPoint.X - sourcePoint.X;
deltaY = targetPoint.Y - sourcePoint.Y;
Hope this was helpful.
... View more
02-23-2017
06:29 AM
|
2
|
0
|
3215
|
|
POST
|
Abdul, What you are missing is origin location to move from. You have a polyline which you want to move to a new location point P. But you need to determine, how you want the line to move. Should the centroid of polyline be on the P or the start point or the end point. Once you have defined that, you will have 2 point and then you can calculate the distance between the points and the angle of the line between the points. Hope this was helpful.
... View more
02-22-2017
05:59 AM
|
3
|
2
|
3215
|
|
POST
|
What do you mean by "WebServices"? ArcGIS Services? If you have the table as one of the layer within a MapService, you can access it like a regular Layer, except if will not contain any geometry information and cannot use FeatureLayer. But you can use, QueryTask like any other layer.
... View more
02-17-2017
11:46 AM
|
0
|
1
|
656
|
|
POST
|
You are just creating a geometry and not adding it to map. Try this. <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width,user-scalable=no">
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
<title>Maps Electrical Power Distribtution</title>
<link rel="stylesheet" href="https://js.arcgis.com/3.19/dijit/themes/nihilo/nihilo.css">
<link rel="stylesheet" href="https://js.arcgis.com/3.19/esri/css/esri.css">
<style>
html, body, #mainWindow {
font-family: sans-serif;
height: 100%;
width: 100%;
}
html, body {
margin: 0;
padding: 0;
}
#header {
height: 80px;
overflow: auto;
padding: 0.5em;
}
</style>
<script src="https://js.arcgis.com/3.19/"></script>
<script>
var map, toolbar, symbol, geomTask;
require([ "esri/map",
"esri/toolbars/draw",
"esri/graphic",
"esri/geometry/Polyline",
"esri/symbols/SimpleMarkerSymbol",
"esri/symbols/SimpleLineSymbol",
"esri/symbols/SimpleFillSymbol",
"dojo/parser",
"dijit/layout/BorderContainer",
"dijit/layout/ContentPane", "dojo/domReady!"
], function(Map, Draw, Graphic, Polyline, SimpleMarkerSymbol, SimpleLineSymbol, SimpleFillSymbol, parser) {
parser.parse();
map = new Map("map", {
basemap: "streets",
center: [-122.148466, 47.585580],
zoom: 13
});
map.on("load", function(){
var singlePathPolyline = new Polyline();
singlePathPolyline.addPath([[-123.2, 48.9], [-122.148, 47.585], [-124.50, 49.4]]);
var graphic = new Graphic(singlePathPolyline, new SimpleLineSymbol());
map.graphics.add(graphic);
});
});
</script>
</head>
<body class="nihilo">
<div id="mainWindow" data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="design:'headline'">
<div id="map" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'"></div>
</div>
</body>
</html>
... View more
02-17-2017
10:04 AM
|
1
|
0
|
638
|
|
POST
|
What is the error? I don't see any issue with the directions. This is related to ArcMap and not Javascript API. You need to post this in the right form to get help. rscheitlin could you move this post please.
... View more
02-16-2017
06:04 AM
|
0
|
1
|
569
|
|
POST
|
Hello Michael, The value you have passed for the baseLayers is wrong. You either need to send an instance of layer or object which it can identify as layer. Right now it might not be able identify which type of layer it is by just url. Here is an example for creating custom basemap. Custom Basemap | ArcGIS API for JavaScript 4.2 Hope this was helpful.
... View more
02-15-2017
08:11 AM
|
2
|
2
|
1400
|
|
POST
|
SOI are service level extensions, should not affect if the data source is file geodatabase or SDE
... View more
02-09-2017
02:08 PM
|
0
|
1
|
1260
|
|
POST
|
I think it will work for both point and polyline, if the problem is only for polygon, then you can loop through all the points within the polygon and offset them.
... View more
02-09-2017
10:34 AM
|
0
|
0
|
2292
|
|
POST
|
If you want to do it on then server side, then probably you would have to write a SOI. some details here About extending services—Documentation | ArcGIS Enterprise On the client side, you could just setup the definition expression for the FeatureLayer to filter out the data which should not be visible to the user.
... View more
02-09-2017
06:06 AM
|
0
|
3
|
1260
|
|
POST
|
You could use the offset method in the GeometryEngine to achieve this. esri/geometry/geometryEngine | API Reference | ArcGIS API for JavaScript 3.19
... View more
02-08-2017
10:06 AM
|
0
|
2
|
2292
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-24-2017 07:15 AM | |
| 1 | 09-13-2016 06:27 AM | |
| 1 | 05-21-2015 08:06 AM | |
| 1 | 12-16-2015 05:43 AM | |
| 1 | 07-20-2015 09:33 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-29-2024
02:34 AM
|