|
POST
|
If we are discussing ArcGIS Server, have a look at: http://www.arcgis.com/home/item.html?id=848f48b0f88e4de7a036377197453efe Additionally, here's some more info on server stats and working with server stats: About server statistics—Documentation (10.3 and 10.3.1) | ArcGIS for Server You can also utilize built-in Windows tools for monitoring performance using perfmon counters: Use PerfMon to Diagnose Common Server Performance Problems
... View more
10-02-2015
06:44 AM
|
1
|
0
|
679
|
|
POST
|
My strongest recommendation is to move to the JavaScript API ASAP: ArcGIS API for JavaScript
... View more
10-01-2015
12:21 PM
|
0
|
2
|
1022
|
|
POST
|
Chase, Are you able to attach your file for community review?
... View more
10-01-2015
11:40 AM
|
0
|
4
|
3118
|
|
POST
|
Russell, Here's the health/status page: ArcGIS Online Health Dashboard Currently, everything is fine, except for Hosted Feature Services: Intermittent issues with Hosted Feature Services
... View more
10-01-2015
11:30 AM
|
1
|
1
|
684
|
|
POST
|
Do you by chance have an example demonstrating the issue?
... View more
09-29-2015
08:48 AM
|
0
|
1
|
774
|
|
POST
|
I translated your question from Google... I believe I understand everything: 1) Yes - you would need ArcGIS Server/ArcGIS Online (AGOL) as well 2) You can create joins using JoinDataSource | API Reference | ArcGIS API for JavaScript Here's a Github example of joins: developer-support/web-js/join-data-source at master · Esri/developer-support · GitHub And a live sample: Dynamic Layer Here's the code: <!DOCTYPE html>
<html>
<head>
<title>Dynamic Layer</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
<link rel="stylesheet" href="http://js.arcgis.com/3.14/dijit/themes/claro/claro.css">
<link rel="stylesheet" href="http://js.arcgis.com/3.14/esri/css/esri.css">
<style>
html, body, #mapDiv, .map.container {
padding:0;
margin:0;
height:100%;
width:100%;
}
#title {
position: relative;
top: 0;
padding: 10px;
background-color: #999;
font: 30px Segoe UI;
text-align: left;
border-style: solid;
border-width: medium;
border-left-style: hidden;
border-top-style: hidden;
border-right-style: hidden;
}
</style>
<script src="http://js.arcgis.com/3.14/"></script>
<script>
var map;
var AGDynamicLayer;
require([
"esri/map",
"esri/layers/ArcGISDynamicMapServiceLayer",
"esri/layers/DynamicLayerInfo",
"esri/layers/TableDataSource",
"esri/layers/LayerDataSource",
"esri/layers/LayerMapSource",
"esri/symbols/SimpleFillSymbol",
"esri/tasks/GenerateRendererParameters",
"esri/tasks/ClassBreaksDefinition",
"esri/tasks/AlgorithmicColorRamp",
"esri/tasks/GenerateRendererTask",
"esri/layers/LayerDrawingOptions",
"esri/symbols/SimpleLineSymbol",
"esri/layers/JoinDataSource",
"esri/config",
"esri/Color",
"dojo/domReady!"
], function(
Map,
ArcGISDynamicMapServiceLayer,
DynamicLayerInfo,
TableDataSource,
LayerDataSource,
LayerMapSource,
SimpleFillSymbol,
GenerateRendererParameters,
ClassBreaksDefinition,
AlgorithmicColorRamp,
GenerateRendererTask,
LayerDrawingOptions,
SimpleLineSymbol,
JoinDataSource,
esriConfig,
Color
) {
esriConfig.defaults.io.proxyUrl = "/sproxy/";
map = new Map("mapDiv", {
basemap: "streets",
center: [-97.453079, 37.696775],
zoom: 6
});
//create a new ArcGISDynamicMapServiceLayer layer based on DynamicLayerInfos.
AGDynamicLayer = new ArcGISDynamicMapServiceLayer("http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer",{
id: "states",
opacity: 0.7,
visible: false
});
AGDynamicLayer.setVisibleLayers([3]);
map.addLayer(AGDynamicLayer);
map.on("update-start", addJoin);
function addJoin(){
var joinDataSource = new JoinDataSource();
//Using LayerMapSource
var layerMapSource = new LayerMapSource({mapLayerId:3});
var rightTableSource = new LayerDataSource({
"dataSource":
{
"type": "table",
"dataSourceName": "ancestry",
"workspaceId": "CensusFileGDBWorkspaceID"
//the workspaceID is for the registered file geodatabase, SDE or Shapefile workspace.
//Basically, there are two ways to enable this workspace ID
//1. From ArcMap before publishing the services
//For more information please take a look about this documentation talks about
//"Enabling dynamic layers on a map service in ArcGIS for Desktop"
//http://desktop.arcgis.com/en/desktop/latest/map/publish-map-services/enabling-dynamic-layers-on-a-map-service-in-arcgis-for-desktop.htm
//2. Or you can go to the ArcGIS Server Manager to manually add workspace ID for existing services
//Please check this documenation as a reference:
//http://desktop.arcgis.com/en/desktop/latest/map/publish-map-services/enabling-dynamic-layers-on-a-map-service-in-manager.htm
}
});
joinDataSource.leftTableSource = layerMapSource;
joinDataSource.rightTableSource = rightTableSource;
joinDataSource.leftTableKey = "STATE_NAME";
joinDataSource.rightTableKey = "State";
joinDataSource.joinType = "left-outer-join";
//source for dynamic layer with join
var joinLayerDataSource = new LayerDataSource();
joinLayerDataSource.dataSource = joinDataSource;
//Create DynamicLayerInfo and set it's source to joinLayerDataSource
var dynamicLayerInfos = [];
var dynamicLayerInfo = new DynamicLayerInfo;
dynamicLayerInfo.id = 3;
dynamicLayerInfo.source = joinLayerDataSource;
dynamicLayerInfos.push(dynamicLayerInfo);
AGDynamicLayer.setDynamicLayerInfos(dynamicLayerInfos);
generateRenderer(joinLayerDataSource);
}
function generateRenderer(joinLayerDataSource){
//make the default symbol
var symbol = new SimpleFillSymbol(
SimpleFillSymbol.STYLE_SOLID,
new SimpleLineSymbol(
SimpleLineSymbol.STYLE_SOLID,
new Color([150, 150, 150, 0.5])));
var classDef = new ClassBreaksDefinition();
classDef.classificationField = "ancestry.American";
classDef.classificationMethod = "natural-breaks";
classDef.normalizationField = "states.POP07_SQMI";
classDef.breakCount = 7;
//classDef.baseSymbol = symbol;
var colorRamp = new AlgorithmicColorRamp();
colorRamp.fromColor = Color.fromHex("#edf8fb");
colorRamp.toColor = Color.fromHex("#005824");
colorRamp.algorithm = "hsv";
classDef.colorRamp = colorRamp;
var CencusUrl = "http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/dynamicLayer";
var generateRendererTask = new GenerateRendererTask(CencusUrl);
var generateRendererParameters = new GenerateRendererParameters();
generateRendererParameters.classificationDefinition = classDef;
generateRendererTask.source = joinLayerDataSource;
generateRendererTask.execute(generateRendererParameters, applyRenderer, errorHandler);
function applyRenderer(renderer){
var optionsArray = [];
var lyrdrawingOptions = new LayerDrawingOptions();
//lyrDrawingOptions.layerId = 3;
lyrdrawingOptions.renderer = renderer;
// set the drawing options for the relevant layer
// optionsArray index corresponds to layer index in the map service
optionsArray[3] = lyrdrawingOptions;
map.getLayer("states").setLayerDrawingOptions(optionsArray);
map.getLayer("states").show();
}
function errorHandler(err) {
// console.log("Something broke, error: ", err);
console.log("error: ", JSON.stringify(err));
}
}
});
</script>
</head>
<body class="claro">
<div id="mapDiv"><div id="title">Using Join Data Source</div></div>
</body>
</html> 3) It's a good idea - the API can do many things. The sky is the limit! 4) Here's some info on representing joined data in the infoWindow: Represent joined data in Info window (ArcGIS JSAPI 3.1) - Geographic Information Systems Stack Exchange 5) Yes - you can create map services and you can join to them as well as SQL databases.
... View more
09-28-2015
12:43 PM
|
1
|
1
|
1030
|
|
POST
|
Bill, I got it to work setting my own event: Edit fiddle - JSFiddle
... View more
09-24-2015
12:35 PM
|
1
|
1
|
1187
|
|
POST
|
And those console errors just look related to jsfiddle... Actually, interesting comment in action.js: // TODO: refactor
// TODO: This code is now legacy code, none of it will make its way into Beta
... View more
09-24-2015
12:01 PM
|
0
|
0
|
2847
|
|
POST
|
I noticed there are some console errors only present when emulating: Also, I was able to get 2 map clicks, randomly, but could not muster more.
... View more
09-24-2015
11:58 AM
|
0
|
1
|
2847
|
|
POST
|
UA spoofing issue on my end. Reloaded and it no longer works.
... View more
09-24-2015
11:53 AM
|
0
|
0
|
2847
|
|
POST
|
Bill, I tried this on my end and could see the clicks registered in console when targeting 3.14 and emulating a Samsung Galaxy S4.
... View more
09-24-2015
11:24 AM
|
0
|
0
|
2847
|
|
POST
|
Dave, When Robert refers to AMD, he is referring to Asynchronous Module Definition (Introduction to AMD Modules - Dojo Toolkit Tutorial). These are the modules included in the Require at the top of your main page, like so: require([
'dojo/on',
'dojo/aspect',
'dojo/_base/lang'], function(
on, aspect, lang) { It looks like the sample I gave used the Legacy Module Require, which looks like: dojo.require("esri.layers.DataSource") You will find the JSAPI generally shows both in reference, but you'll want to use AMD.
... View more
09-24-2015
07:36 AM
|
1
|
5
|
1617
|
|
POST
|
Also, you can try creating Fiddler samples. Here's some examples to get you started: gavinr's Fiddles - JSFiddle - Online JavaScript Editor - jQuery, Angular, Backbone, Underscore, Knockout, YUI c/o Gavin Rehkemper
... View more
09-23-2015
01:26 PM
|
1
|
0
|
1617
|
|
POST
|
David, Just a heads-up, if you're having trouble with the editor, try: -> copy code from application -> paste into a blank notepad document -> click "use advanced editor" -> copy code from notepad -> paste into geonet editor box -> add a few newlines after the paste with some dummy text -> select your code block -> click the ">>" insert function -> choose "syntax highlighting" -> then select JavaScript This should resolve any issues with adding code to geonet.
... View more
09-23-2015
01:22 PM
|
0
|
1
|
2563
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-16-2020 01:25 PM | |
| 1 | 03-20-2019 09:07 AM | |
| 2 | 07-31-2015 07:31 AM | |
| 1 | 09-14-2015 12:14 PM | |
| 1 | 05-12-2015 12:04 PM |
| Online Status |
Offline
|
| Date Last Visited |
07-27-2023
02:30 AM
|