POST
|
The LocalLocatorTask class was included in previous versions of the ArcGIS Runtime SDK for .NET, most recently at 10.2.7.1234. It was extremely helpful to have offline geocoding capabilities in certain apps. This class has been removed from the newest version 100.0.0. The Esri.ArcGISRuntime.Tasks.Geocoding namespace can be viewed here. Why was that class removed and is there an alternative operation we can use for offline geocoding?
... View more
05-15-2017
12:46 PM
|
0
|
1
|
497
|
POST
|
Is it best to use the source from the Layer List? If the person who created that web map has made changes to the symbology in the web map, they would not show up in the actual feature service.
... View more
02-20-2017
01:46 PM
|
0
|
1
|
1106
|
POST
|
Unfortunately, that does not work either. I have been trying to use a FeatureLayerView to do a client-side query on the graphics that intersect with a mouse click event. After stepping through the code, it appears that a client-side query will only work with a list of ObjectIDs or an extent. I tried artificially creating an "extent" around the mouse click location, but that has not worked either.
... View more
01-18-2017
12:38 PM
|
0
|
1
|
2957
|
POST
|
Rene-- Is there any alternative function we can use in 4.2 to capture all graphics that intersect with a click event?
... View more
01-17-2017
08:01 AM
|
0
|
5
|
2957
|
POST
|
Thanks Robert, I ended up using a Promise with the MapView before I plot the point. Do you know how to adjust the animation/duration speeds for the zoom operation in 4.2?
... View more
01-13-2017
08:35 AM
|
0
|
1
|
1246
|
POST
|
I am not able to perform a GoTo operation with a Zoom option. I have tried on multiple targets including individual/multiple graphics and geometries, which should work according to the reference. Here is sample code I'm using to replicate the issue: <!DOCTYPE html>
<html>
<head>
<title>GoTo Operation with Zoom</title>
<style>
html,
body,
#viewDiv {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
</style>
<link rel="stylesheet" href="https://js.arcgis.com/4.2/esri/css/main.css">
<script src="https://js.arcgis.com/4.2/"></script>
<script>
require([
"esri/Map",
"esri/views/MapView",
"esri/symbols/SimpleMarkerSymbol",
"esri/geometry/Point",
"esri/Graphic",
"esri/geometry/SpatialReference",
"dojo/domReady!"
], function (Map, MapView, SimpleMarkerSymbol, Point, Graphic, SpatialReference) {
var map = new Map({
basemap: 'hybrid'
});
var view = new MapView({
center: [-84.3852995, 33.7678835],
container: "viewDiv",
map: map,
zoom: 13
});
//Create SVG Icon
var iconPath = "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z";
var markerSymbol = new SimpleMarkerSymbol(
{
path: iconPath,
size: "50px",
color: "#3F51B5",
outline: {
color: [255, 255, 255],
width: 1
}
}
);
var point = new Point({
longitude: -84.3852995,
latitude: 33.7678835,
spatialReference: SpatialReference.WGS84
});
var pointGraphic = new Graphic({
geometry: point,
symbol: markerSymbol
});
view.graphics.add(pointGraphic);
var options = {
zoom: 5
}
view.goTo(point, options);
});
</script>
</head>
<body>
<div id="viewDiv"></div>
</body>
</html>
I'm getting the following exception: TypeError: Cannot read property 'wkid' of null
at v (MapView.js:35)
at y (MapView.js:38)
at Object.m.createAsync (MapView.js:45)
at Object.m.goTo (MapView.js:15)
at esriLoader.require.Viewpoint.generateRandomPoints (AngularMap.html:115)
at AngularMap.html:249
at angular-esri-map@2.0.1:118
at processQueue (angular.js:15961)
at angular.js:15977
at Scope.$eval (angular.js:17229)
... View more
01-13-2017
06:30 AM
|
0
|
3
|
3641
|
POST
|
It can according to the Esri sample (this one is on v3.19, so it may only be affecting v4.2): ArcGIS API for JavaScript Sandbox You can add this line within the createSymbol method: markerSymbol.size = "48px"; and it will adjust the size of the SVG graphics.
... View more
01-12-2017
07:25 AM
|
1
|
1
|
930
|
POST
|
I am setting the size on a SimpleMarkerSymbol using the 4.2 JavaScript API, but it is not having any effect on the resulting symbols. I have been assigning the value according to these examples. In this case, I'm getting the shape of the symbol from an SVG string. Here is a sample app to replicate the issue: <!DOCTYPE html>
<html>
<head>
<title>Resize SimpleMarkerSymbols</title>
<style>
html,
body,
#viewDiv {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
</style>
<link rel="stylesheet" href="https://js.arcgis.com/4.2/esri/css/main.css">
<script src="https://js.arcgis.com/4.2/"></script>
<script>
require([
"esri/Map",
"esri/views/MapView",
"esri/symbols/SimpleMarkerSymbol",
"esri/geometry/Point",
"esri/Graphic",
"dojo/domReady!"
], function (Map, MapView, SimpleMarkerSymbol, Point, Graphic) {
var map = new Map({
basemap: 'hybrid'
});
var view = new MapView({
center: [-84.3852995, 33.7678835],
container: "viewDiv",
map: map,
zoom: 13
});
//Create SVG Icon
var iconPath = "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z";
var markerSymbol = new SimpleMarkerSymbol(
{
path: iconPath,
size: "50px",
color: "#3F51B5",
outline: {
color: [255, 255, 255],
width: 1
}
}
);
var point = new Point({
longitude: -84.3852995,
latitude: 33.7678835
});
var pointGraphic = new Graphic({
geometry: point,
symbol: markerSymbol
});
view.graphics.add(pointGraphic);
});
</script>
</head>
<body>
<div id="viewDiv"></div>
</body>
</html>
... View more
01-12-2017
07:05 AM
|
0
|
4
|
1867
|
Title | Kudos | Posted |
---|---|---|
1 | 01-12-2017 07:25 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|