POST
|
You can customize the filter widget code and replace the inputs with your own. Dojo does have a slider controller - Sliders with Dijit - Dojo Toolkit Tutorial I'm guessing the widget gives the user dynamic values based on the layer so if you preconfigure the range values, you'll have some issues with different scenarios. It's definitely not easy but possible. Shay
... View more
10-14-2019
05:09 PM
|
0
|
0
|
1166
|
POST
|
Just found it. It's at the popupmanager.js file. line 136
... View more
10-03-2019
12:47 AM
|
0
|
0
|
444
|
POST
|
Hi, I'm trying to get the selected features once the user clicked on the map on a location with a layer. If the map contains graphic layer/s, once he click the map, the features are stored as an object to be used for a popup. But when there are no graphic layers and only a feature service layers, the features are not stored, although a popup is displayed. I guess I'm trying to find the features just before the popup window receives them. It's all inside a WAB application. Regards, Shay.
... View more
10-03-2019
12:18 AM
|
0
|
1
|
508
|
POST
|
Amazing work Nick! Have you managed to get it to work with feature services and layers from a webmap? Based on your example, it seems to be working only for graphic layers at the moment. Shay.
... View more
10-02-2019
11:48 PM
|
0
|
1
|
1232
|
POST
|
I used to work like that until I realized how slow my loading time gets when using VSCode. You should really consider using the built-in dev tools in chrome.. they're extremely powerful! you can manipulate the code on-the-fly before applying it on VSCode for example.. complete debugging support of course with watch, conditional break points, network examining and much more. and above all maximum performace.. just my two cents. Shay.
... View more
09-18-2019
12:24 AM
|
0
|
0
|
2639
|
POST
|
I assume you want this to happen when the user loads the application.. Sounds like you'll need a custom query task that injects the user details in the where statement for each layer. I'm manipulating the layers a bit when loading the application but it's a very custom solution. I manage that code at the jimu.js/mapmanager.js file just when it loads the layers. You can iterate them and apply the filter with the FilterManager object after grabbing the user details (which should be available once you limit the access to the resource) Shay.
... View more
09-16-2019
12:47 AM
|
0
|
2
|
505
|
POST
|
Matej, If youdon't have any background with programming you will find this very hard to follow. Creating a map with a custom basemap is one thing and creating a widget in a web appbuilder environment is like a whole different animal. Creating a map with a custom basemap is the first tutorial in the API guide. This is very basic, unlike creating/customizing widgets. 1- Create a map | ArcGIS API for JavaScript 3.29 2- esri/basemaps | API Reference | ArcGIS API for JavaScript 3.29 <!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
<title>Basemap Toggle</title>
<link rel="stylesheet" href="https://js.arcgis.com/3.29/esri/css/esri.css">
<style>
html, body, #map {
padding:0;
margin:0;
height:100%;
}
#BasemapToggle {
position: absolute;
top: 20px;
right: 20px;
z-index: 50;
}
</style>
<script src="https://js.arcgis.com/3.29/"></script>
<script>
var map;
require([
"esri/basemaps",
"esri/map",
"dojo/domReady!"
], function (esriBasemaps, Map){
esriBasemaps.delorme = {
baseMapLayers: [{url: "https://services.arcgisonline.com/ArcGIS/rest/services/Specialty/DeLorme_World_Base_Map/MapServer"}
],
thumbnailUrl: "https://www.example.com/images/thumbnail_2014-11-25_61051.png",
title: "Delorme"
};
var map = new Map("ui-map", {
basemap: "delorme",
center: [-111.879655861, 40.571338776], // long, lat
zoom: 13,
sliderStyle: "small"
});
});
</script>
</head>
<body>
<div id="map" class="map">
<div id="ui-map"></div>
</div>
</body>
</html>
... View more
09-05-2019
04:56 PM
|
0
|
0
|
1928
|
POST
|
I'm actually working on adding a filter button on the layer list display.. sounds like the other way around what you had in mind? not sure how you plan to have a list of layers in the filter widget though
... View more
09-01-2019
07:34 PM
|
0
|
0
|
337
|
POST
|
That's what I always do and it works great. You should work with breakpoints and once you save any changes the code will jump back up and stop at a breakpoint. Google has a great tutorial with step-by-step on how to do it - Get Started with Debugging JavaScript in Chrome DevTools | Tools for Web Developers | Google Developers
... View more
08-30-2019
10:07 PM
|
0
|
0
|
396
|
POST
|
Robert, Once I execute a query task, the results I'm getting are completely separate from my activity.. it's just a set of results and not considered to be part of the active layer. Is there a way to run the query task on a layer from the layer list without managing the results in a separate manner? I'm basically trying to filter the existing layer without creating a new one.
... View more
08-29-2019
10:30 PM
|
0
|
3
|
2414
|
POST
|
Sounds good, thanks a lot! I'm about to give it a go. I'll report back once it's done.
... View more
08-29-2019
07:36 PM
|
0
|
0
|
2414
|
POST
|
Interesting.. I never noticed that class before. Anyway, I used the sample you mentioned with the "impact" font family and it seems to be working fine on my side. I don't have a clear understanding on your environment to know why you have difficulties there but I can recommend 2 things - 1. break it down to small pieces - pure HTML with no frameworks or 3rd party tools seems to be working when using the setFamily function so it might be something to do with your environment. 2. override the css settings - It might not be the "cleanest" solution but if you can't get it to work "by-the-book", I think it's acceptable to override the css style with your own .new-style { font-family: "impact" !important } Sorry I couldn't answer your questions though If you're looking to understand better (or modify) the Font class behaviour you can download the API and play with the code - but I definitely not recommend doing that.. It's better to just override the style with your own. Good luck Shay.
... View more
08-29-2019
05:11 PM
|
0
|
0
|
1241
|
POST
|
Thank you Robert, I was affraid that might be the answer.. if I do choose to implement it that way, do you know if the behaviour of the filter will be the same as using the FilterManager? (will it be consistent thoughout the use of the app and layer?) I'm not sure I fully understand the differences of using the FilterManager rather than a query task.. I assume that the FilterManager is just a wrapper to a query task.
... View more
08-29-2019
04:59 PM
|
0
|
6
|
2414
|
POST
|
Hi Tyler, In regards to the (new) Font class, is it something you wrote? I don't believe it's part of the API library.. it would be helpful to see its content. Shay.
... View more
08-29-2019
12:13 AM
|
0
|
2
|
1241
|
Title | Kudos | Posted |
---|---|---|
1 | 08-17-2023 06:13 AM | |
1 | 11-29-2021 06:30 PM | |
1 | 12-01-2021 03:17 PM | |
1 | 11-29-2021 10:52 PM | |
1 | 11-29-2021 06:15 PM |