|
DOC
|
No. I have not seen anything like that as it would take a FeatureService (i.e. editing) to store the bookmark and make them accessible to others.
... View more
06-22-2021
11:35 AM
|
0
|
0
|
6380
|
|
DOC
|
@AdCulver When I user adds a bookmark live that bookmark is stored locally on that machine, so No it is not available to other users. But if the application configurer adds a bookmark in WAB Dev then that bookmark is added at the application level and all users of the application will see it.
... View more
06-22-2021
08:55 AM
|
0
|
0
|
6391
|
|
POST
|
@Nicholas_I_Seigal Yes I am still maintaining my WAB widgets. As far as moving forward: https://community.esri.com/t5/experience-builder-custom/gh-p/eb-custom-widgets What type of tweaks?
... View more
06-21-2021
05:56 AM
|
0
|
0
|
4378
|
|
DOC
|
@Anonymous User, When I use the web map link you provided I get this error: The layer, House Number Database, cannot be added to the map. and The layer, PDF Archive, cannot be added to the map.
... View more
06-21-2021
05:53 AM
|
0
|
0
|
27560
|
|
POST
|
@JGraca, Here is your codepen code updated for that: <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
<style>
html,
body,
#viewDiv {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
</style>
<link rel="stylesheet" href="https://js.arcgis.com/4.18/esri/themes/light/main.css" />
<script src="https://js.arcgis.com/4.18/"></script>
<script>
require(["esri/views/MapView",
"esri/WebMap",
"esri/Graphic",
"esri/layers/GraphicsLayer",
"esri/widgets/Sketch/SketchViewModel",
"esri/geometry/Polygon",
"esri/geometry/SpatialReference",
"esri/geometry/support/webMercatorUtils"
], function (MapView, WebMap, Graphic, GraphicsLayer, SketchViewModel, Polygon, SpatialReference, webMercatorUtils) {
let sketchViewModel;
var graphicsLayer = new GraphicsLayer();
var webmap = new WebMap({
basemap: 'satellite',
layers: [graphicsLayer]
});
var view = new MapView({
map: webmap,
container: "viewDiv",
center: [-9.40019762581224, 39.33930907833357],
zoom: 6
});
setUpGraphicClickHandler();
addGraphics();
sketchViewModel = new SketchViewModel({
view: view,
layer: graphicsLayer,
updateOnGraphicClick: true,
defaultUpdateOptions: {
enableRotation: false,
toggleToolOnClick: false
},
polygonSymbol: {
type: "simple-fill",
color: [0, 0, 0, 0.2],
style: "none",
outline: {
style: "dash",
color: [168,168,168,1],
width: 2
}
}
});
sketchViewModel.on(["update", "undo", "redo"], onGraphicUpdate);
function onGraphicUpdate(event) {
const graphic = event.graphics[0];
if (
event.toolEventInfo &&
(event.toolEventInfo.type === "move-stop" ||
event.toolEventInfo.type === "reshape-stop")
) {
sketchViewModel.complete();
} else if (event.state === "cancel" || event.state === "complete") {
sketchViewModel.update([graphic], {
tool: "rectangle"
});
const coordinate = webMercatorUtils.webMercatorToGeographic({graphic})
}
sketchViewModel._internalGraphicsLayer.graphics.map(function(gra){
if(gra.geometry.type === 'polygon'){
gra.symbol.outline.color = [0,0,0,0];
}
if(gra.geometry.type === 'point'){
gra.symbol.outline.color = [168,168,168,1];
}
});
}
function setUpGraphicClickHandler() {
view.on("click", function (event) {
if (sketchViewModel.state === "active") {
return;
}
view.hitTest(event).then(function (response) {
var results = response.results;
results.forEach(function (result) {
if (
result.graphic.layer === sketchViewModel.layer &&
result.graphic.attributes &&
result.graphic.attributes.newDevelopment
) {
sketchViewModel.update([result.graphic], {
tool: "rectangle"
});
}
});
});
});
}
function addGraphics() {
const newDevelopmentGraphic = new Graphic({
geometry: webMercatorUtils.geographicToWebMercator(
new Polygon({
rings: [
[-13.43218004768601, 43.353861447707416],
[-13.43218004768601, 36.364593011258414],
[2.497995733559755, 36.364593011258414],
[2.497995733559755, 43.353861447707416],
[-13.43218004768601, 43.353861447707416]
],
spatialReference: new SpatialReference({
wkid: 3857
})
})
),
symbol: {
type: "simple-fill",
color: [0, 0, 0, 0.2],
style: "none",
outline: {
style: "dash",
color: [168,168,168,1],
width: 2
}
},
attributes: {
newDevelopment: "search area"
}
});
graphicsLayer.add(newDevelopmentGraphic);
setTimeout(function(){
sketchViewModel.update([newDevelopmentGraphic],{
tool: "transform",
toggleToolOnClick: false
});
}, 500);
}
});
</script>
</head>
<body>
<div id="viewDiv"></div>
</body>
</html>
... View more
06-18-2021
07:51 AM
|
1
|
0
|
4459
|
|
DOC
|
@Anonymous User , to use the layer popup configured in the web map you choose Use Popup from "Web Map" in the layers setting when configuring the search layer in the eSearch widgets settings. The layers URL need to be identical to the url that is configured in the webmap (i.e. protocol and CaSe).
... View more
06-18-2021
07:02 AM
|
0
|
0
|
27674
|
|
POST
|
@JGraca, If you want the polygon fill to be transparent then you need to set the fill style and if want the outline to be dashed then you have to set the outline style. polygonSymbol: {
type: "simple-fill",
color: [0, 0, 0, 0.2],
style: "none",
outline: {
style: "dash",
color: [255, 255, 255],
width: 2
}
}
... View more
06-16-2021
06:55 AM
|
1
|
2
|
4494
|
|
DOC
|
@KellieH Sure you can try adding this (lines 2 - 4): onAttributeLayerChange: function (newValue) {
if(this.currentFeatures.length > 0){
this.clear();
}
.....
... View more
06-08-2021
09:20 AM
|
0
|
0
|
27958
|
|
DOC
|
@Anonymous User , OK I see the issue and the fix is simple just update the onClose function in the widget.js to: onClose: function () {
this._hideInfoWindow();
this.drawBox.deactivate();
this.graphicsLayer.hide();
if (this.selectionGL) this.selectionGL.hide();
if (this.infoWinMouseOver) this.infoWinMouseOver.remove();
if (this.infoWinMouseOut) this.infoWinMouseOut.remove();
if (this.extChangeHandler) this.extChangeHandler.remove();
},
... View more
06-08-2021
09:12 AM
|
0
|
0
|
20256
|
|
DOC
|
@KellieH The widget is designed to search one specific layer at a time so No you can not select one or more features from Protected Sites A and then add one or more feature from Protected Sites B before doing the spatial selection on License Applications.
... View more
06-08-2021
05:49 AM
|
0
|
0
|
27973
|
|
POST
|
Gilberto, Normally I get past these cors issues by using a proxy in my WAB install. I never having any luck using localhost are mixing servers i.e. one portion being on localhost and the other being on a fully qualified domain.
... View more
06-08-2021
05:39 AM
|
0
|
3
|
5987
|
|
DOC
|
Hafiz, I do not use Portal so I have not confirmed it, but yes it should work if you follow the instructions for adding custom widgets to ArcGIS Enterprise. https://enterprise.arcgis.com/en/web-appbuilder/latest/create-apps/add-custom-widgets.htm
... View more
06-08-2021
05:28 AM
|
0
|
0
|
19014
|
|
DOC
|
@BobWheeler Are there any errors in the browsers web console? I am not a Portal user, so I can not test in that environment.
... View more
05-27-2021
01:09 PM
|
0
|
0
|
15909
|
|
DOC
|
All, Here is my next EB widget for all of you to use. Note: This is an EB 1.9 Widget (not tested for backward compatibility). The widget allows you to measure in a 2D map view. You can measure length, area, and location. The widget allows you to change the displayed measurement results at runtime. You can add custom location units to display the location results in a different projection then the map view (i.e. add a projected coordinate system like State Plane). You can configure which measurement tools are visible. You can define the default measurement unit for distance and area measurements. You can set the measurements drawing colors (i.e. path and fill color). To install this widget extract the contents of the zip file to your EB\client\your-extensions\widgets. So once you extract the whole path would look like: \client\your-extensions\widgets\measurement. Refresh your client and server windows (easiest way is to close both and 'npm start' them like you normally do to start EB). Now the measurement widget will appear in your apps widget menu. Add the widget to your app. Now use the widgets settings panel to configure the widget. Enjoy, Robert
... View more
05-27-2021
12:04 PM
|
11
|
21
|
13841
|
|
BLOG
|
Currently I am working on getting all the widget that I use in my County Parcel Viewer website re-developed in Experience Builder. This has been a bit of a task as EB is very lacking in widgets currently. As I hope most of know I have released a Print Widget already. Next to release is likely the Measurement widget. This is basically the JS API Measure widget (2D) with the addition of point locations. Though a point is not technically a measurement , I believe that it is an important addition. Being able to click on the map and get the Lat, long or X, Y in multiple formats is nice. I know that in EB 1.4 there is the Coordinate Conversion widget but I like my ability to have location information linked with measurement info. You can define the WKID (Spatial Reference) of the point location and change from DD, DMS, or your custom specified WKID in the widget at runtime. I also have a Draw widget pretty close to release. The draw widget basic JS API Sketch Widget (2D) with the addition of symbology settings at run time for graphics and editing graphics symbology at runtime, along with the much needed (in my opinion) Text drawing capability. One of the major things that both of these widget are currently lacking is the widget settings UI. Currently if I release them, then configuration will have to be made manually in the widgets config.json file. Oh course I have already started developing eSearch and eLocate widget but as those are heavily reliant on configuration I probably will not release those until I have developed their settings dialogs fully. One major thing to note is that I am not developing widgets for 3D so all my widgets are developed for 2D Map View and not web scenes. One of the areas of feedback I would like to request is about releasing before the widget setting development is complete. If I have the widgets basic functionality complete should I release it (like I did initially for the print widget) or spend the time to develop the setting dialog (which will definitely delay the release) before releasing? The difference would be the manual editing of the widget config.json of course. What's your opinion? Earlier release or fully configurable using the UI?
... View more
05-26-2021
09:15 AM
|
12
|
21
|
11238
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-14-2020 11:36 AM | |
| 16 | 05-17-2021 01:51 PM | |
| 1 | 07-06-2020 05:32 AM | |
| 1 | 07-10-2018 05:49 AM | |
| 9 | 01-28-2022 10:58 AM |
| Online Status |
Offline
|
| Date Last Visited |
06-08-2026
06:27 AM
|