|
POST
|
Here is my Blank Widget.js for the WAB. This should work for you as a sample. define([
"jimu/BaseWidget",
"dojo/_base/declare",
"dojo/on",
"dojo/dom-construct",
"dojo/dom",
"dojo/dom-style",
"dojo/query",
"dojo/dom-class",
"dojo/dom-attr",
"dojo/keys",
"dojo/store/Memory",
"dojo/_base/fx",
"dojo/_base/window",
"dojo/dom-geometry",
],
function (BaseWidget,
declare, on, domConstruct, dom, domStyle, query, domClass, domAttr, keys, Memory, fx, win, domGeom)
{
return declare([BaseWidget], {
baseClass: 'sc-widget-',
name: 'SC-BlankWidget',
constructor: function ()
{
this.inherited(arguments);
},
startup: function ()
{
this.inherited(arguments);
alert('hello World')
},
});
});
... View more
10-19-2016
01:04 PM
|
0
|
0
|
1854
|
|
IDEA
|
In ArcCatalog, after I perform any operation (i.e. Add Attachments, Enable Archiving, etc...) on a feature class the "Contents" pane scrolls back to the top. It would be very nice if it automatically scrolled back to the feature class I was working on and have it selected. For example. If I add GlobalID's on a feature class I usually want to add attachments afterwords, but I have to scroll and locate the feature class again. Its just frustrating when you database has 100's of feature classes. Drew
... View more
10-06-2016
07:46 AM
|
3
|
0
|
248
|
|
POST
|
I would suggest creating a simple sample of the issue you are having and letting us play with it. Its always nice to see what you are working with.
... View more
10-03-2016
08:47 AM
|
1
|
7
|
1252
|
|
POST
|
At a quick glance I would say its because you have the layerId's defined. Remove this line identifyParams.layerIds = [0, 1, 2, 3, 4, 5]; You can read more on the IdentifyParameters below IdentifyParameters | API Reference | ArcGIS API for JavaScript 3.18 Drew
... View more
09-29-2016
12:15 PM
|
1
|
0
|
2096
|
|
POST
|
Thats just some CSS and HTML modification of the sandbox sample you provided. Solution <!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>Layer List Dijit</title>
<link rel="stylesheet" href="https://js.arcgis.com/3.18/dijit/themes/claro/claro.css">
<link rel="stylesheet" href="https://js.arcgis.com/3.18/esri/css/esri.css">
<style>
html, body, .container, #map {
height:100%;
width:100%;
margin:0;
padding:0;
margin:0;
font-family: "Open Sans";
}
#map {
padding:0;
}
#layerListPane{
position: absolute;
/* top: 100px; */
right: 10px;
width: 300px;
z-index: 101;
padding: 10px;
bottom: 10px;
box-shaddow: 0 0 5px 0 #DDD;
border:1px solid #000;
background-color:#FFF;
}
.esriLayer{
background-color: #fff;
}
.esriLayerList .esriList{
border-top:none;
}
.esriLayerList .esriTitle {
background-color: #fff;
border-bottom:none;
}
.esriLayerList .esriList ul{
background-color: #fff;
}
</style>
<script>var dojoConfig = { parseOnLoad: true };</script>
<script src="https://js.arcgis.com/3.18/"></script>
<script>
require([
"esri/arcgis/utils",
"esri/dijit/LayerList",
"dijit/layout/BorderContainer",
"dijit/layout/ContentPane",
"dojo/domReady!"
], function(
arcgisUtils,
LayerList
) {
//Create a map based on an ArcGIS Online web map id
arcgisUtils.createMap("f63fed3f87fc488489e27c026fa5d434", "map").then(function(response){
var myWidget = new LayerList({
map: response.map,
layers: arcgisUtils.getLayerList(response)
},"layerList");
myWidget.startup();
});
});
</script>
</head>
<body class="claro">
<div id="layerListPane">
<div id="layerList"></div>
</div>
<div id="map"></div>
</body>
</html>
Drew
... View more
09-29-2016
10:40 AM
|
0
|
1
|
2096
|
|
POST
|
I think you have to apply the startup function.. myWidget.startup()
... View more
09-29-2016
09:43 AM
|
2
|
0
|
2096
|
|
POST
|
I thought I would just bring this issue back up with a better description on how to test... To see the mouse get stuck in pan mode try the following.. Load the sandbox sample into a new browser (any browser) ArcGIS API for JavaScript Sandbox Pan around quickly then zoom in and out like a maniac with your mouse scroll wheel Do this over and over until you see the issue. Drew
... View more
09-28-2016
11:01 AM
|
1
|
1
|
965
|
|
POST
|
It might be best to keep track of that graphic when you add it. Then just manage it in code. You can move it using the "setGeometry(..) function or hide() and show() as needed. Graphic | API Reference | ArcGIS API for JavaScript 3.17
... View more
09-19-2016
10:55 AM
|
1
|
0
|
470
|
|
POST
|
Thank You - Worked like a charm! We have been struggling with this issue since 10.4.1 There is a publishing patch we are going to try next week to see if it fixes the actual issue. We just need to wait until we can do it off hours because it restarts all services. For others: Process Explorer Can Be Download Here Drew
... View more
09-15-2016
11:09 AM
|
3
|
0
|
5255
|
|
POST
|
You have to create a new service if you want different layouts associated with it. Tutorial: Publishing additional services for printing—Documentation | ArcGIS for Server
... View more
09-14-2016
06:41 AM
|
1
|
0
|
972
|
|
POST
|
Here is a sample i made using some public data Edit fiddle - JSFiddle
... View more
09-13-2016
11:33 AM
|
1
|
0
|
1683
|
|
POST
|
If "subLayerIds" is null then something else is wrong. Try publishing your service again and look at the REST endpoint to ensure they exist. To get the name you just need to get the LayerInfo of the item.. var layerName = infos[mySubLayerId].name;
... View more
09-13-2016
10:02 AM
|
0
|
0
|
1683
|
|
POST
|
The layerInfos class has a "subLayerIds" property. That will give you the Id's you need. LayerInfo | API Reference | ArcGIS API for JavaScript 3.17
... View more
09-13-2016
08:51 AM
|
1
|
2
|
1683
|
|
DOC
|
Hello Robert, Are you able to point me to the terms that says we can not use a non google maps to bring up Street View? I don't see how google can say that because its just hyperlinking to their page - The entire premise of the world wide web. Drew
... View more
09-13-2016
06:10 AM
|
1
|
0
|
8398
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-04-2013 09:40 AM | |
| 1 | 12-11-2012 10:19 AM | |
| 1 | 05-25-2015 10:46 AM | |
| 1 | 05-10-2016 06:31 AM | |
| 1 | 01-17-2017 11:01 AM |
| Online Status |
Offline
|
| Date Last Visited |
12-31-2021
09:54 AM
|