POST
|
I am attempting to get my ArcObjects development environment set up, with the goal of developing a Server Object Extension and I am getting stuck on building/deploying extensions. I have ArcGis Server 10.3.1 and the ArcObjects SDK 10.3.1 up and running. I can deploy one of the sample SOE's, provided with the SDK, but cannot build the SOE sample myself and deploy it. When I deploy the .soe file and enable the extension in the service I want it to apply it to, I am getting a "ClassFactory cannot supply requested class" error upon startup of the service. I am following the steps described here , using the Eclipse export functionality and the command line utility with the same result. Any ideas what is wrong with my environment?
... View more
02-18-2016
05:46 PM
|
0
|
0
|
2718
|
POST
|
When accessing a Graphic object, the Symbol attribute returns undefined, even though a symbol is drawn on the map. After changing the symbol using the graphic.setSymbol() method, it is no longer undefined. Here is slightly modified code from this sample for a CSV layer: <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/>
<title>Simple Map</title>
<link rel="stylesheet" href="http://js.arcgis.com/3.13/esri/css/esri.css">
<style>
html, body, #map {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
body {
background-color: #FFF;
overflow: hidden;
font-family: "Trebuchet MS";
}
</style>
<script src="http://js.arcgis.com/3.13/"></script>
<script>
var map, csv;
require([
"esri/map",
"esri/layers/CSVLayer",
"esri/Color",
"esri/symbols/SimpleMarkerSymbol",
"esri/renderers/SimpleRenderer",
"esri/InfoTemplate",
"esri/urlUtils",
"dojo/on",
"dojo/domReady!"
], function(
Map, CSVLayer, Color, SimpleMarkerSymbol, SimpleRenderer, InfoTemplate, urlUtils, on
) {
urlUtils.addProxyRule({
proxyUrl: "/proxy/",
urlPrefix: "earthquake.usgs.gov"
});
map = new Map("map", {
basemap: "gray",
center: [ -60, -10 ],
zoom: 4
});
csv = new CSVLayer("http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_week.csv", {
copyright: "USGS.gov"
});
var orangeRed = new Color([238, 69, 0, 0.5]); // hex is #ff4500
var marker = new SimpleMarkerSymbol("solid", 15, null, orangeRed);
var renderer = new SimpleRenderer(marker);
csv.setRenderer(renderer);
var template = new InfoTemplate("${type}", "${place}");
csv.setInfoTemplate(template);
map.addLayer(csv);
on(map.getLayer(map.graphicsLayerIds[0]), 'click', function(event){
console.log("Before Changing: ", event.graphic.symbol)
event.graphic.setSymbol(new SimpleMarkerSymbol("solid", 30, null, new Color([238, 69, 0, 0.5])))
console.log("After changing: ", event.graphic.symbol)
});
});
</script>
</head>
<body>
<div id="map"></div>
</body>
</html> Am I doing something dumb, or is this a bug? I would like to access the symbol for a given graphic before a user interacts with it
... View more
03-18-2015
12:49 PM
|
0
|
1
|
3871
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|