|
POST
|
I have two dropdowns. One is to call basemap and another to call a custom widget <calcite-dropdown label="Dropdown label">
<calcite-button slot="dropdown-trigger">Tools</calcite-button>
<calcite-dropdown-group selection-mode="single">
<calcite-dropdown-item label="thebasemaps" id='thebasemaps'>Basemaps</calcite-dropdown-item>
<calcite-dropdown-item label="X" id='X'>X widget</calcite-dropdown-item>
</calcite-dropdown-group> So I have the addeventlistener: document.querySelector("calcite-dropdown-item").addEventListener("click", handleWidgetsClick); So, when I click on the Basemaps, it displays the basemaps gallery with no issues. When I click on the X widget, no reaction. The handlewidgets is not triggered. Why the addlistener is not triggered for the X widget?
... View more
04-28-2022
06:08 PM
|
0
|
1
|
1354
|
|
POST
|
ok understood. Yes, not intuitive at all. It is becoming difficult to train users who are not very experienced with web apps to be aware of the red bar. By commenting out those two lines as I mentioned before, I still have not seen any issues. Users can process to edit features after using the AT. Do you see any specific scenario that commenting out those two lines would cause issues?
... View more
04-27-2022
12:25 PM
|
0
|
0
|
1776
|
|
POST
|
Hi. I think there is a misunderstanding. I was referring to edit existing features. The reason of why I mentioned the Attribute Table is because when you open and close the AT, it triggers the _mapClickHandler function. Since the parameter "Create" is false then it fails the If and else if statements (lines 2 & 8 of the script I attached previously) and it passes to the else statement (line 15) and it removes the mapclick. From that point on, you cannot click on any existing feature to edit its attributes. To illustrate of what the issue is I am attaching a video that shows the issue. At the beginning, I click some existing features as it is expected the form opens and allows me to edit the feature attributes if I wish. Then, I close the form. Next, I open and close the AT. Now, when I click on any feature I cannot edit any features. Then I access the code and I comment out the two lines in the _mapClickHandler function function. Save the file and reload the website. I open and close the AT and now I can click on any existing feature and edit its attributes.
... View more
04-27-2022
12:02 PM
|
0
|
1
|
1785
|
|
POST
|
My department uses the Chrome extension Siteimprove Accessibility Checker which is available at: https://chrome.google.com/webstore/detail/siteimprove-accessibility/djcglbmbegflehmbfleechkjhmedcopn?hl=en. Furthermore, the department's criteria of meeting accessibility requirements is by complying with the Web Content Accessibility Guidelines (WCAG) 2.1 Level AA criteria. I don't use codepen but you can see the script by viewing the page source at: view-source:https://svctenvims.dot.ca.gov/pm_tools/index.html
... View more
04-27-2022
10:55 AM
|
0
|
1
|
1359
|
|
POST
|
I developed a site using Calcite Design System but a lot if its elements are failing the test for accessibility. It seems that the accessibility checker can't recognize any of the aria keywords that used in calcite tags. For example, I get an error: "Text not included in an ARIA landmark" and it refers to the line : <calcite-block open heading="Postmile Tools" style="height:1110px"> It was recommended by the checker to use the aria-label. I did so but it does not recognize it. <calcite-block open heading="Postmile Tools" aria-label="Postmile tools" style="height:1110px"> Ideas? "
... View more
04-27-2022
09:26 AM
|
0
|
3
|
1394
|
|
POST
|
This is for version 2.23 of WAB. I noticed that if the template is closed and you open and close the Attribute Table, then you cannot click on any existing feature to edit its attributes. The reason is because of the conditions shown in the mapclickhandler script. In the widget.js under the _mapClickHandler function, if the template is not open it defaults to remove the mapClick. So, I commented out the lines 18&19 to prevent that. Is any reason not to comment them out? As far I can see in my app it is working with no issues. _mapClickHandler: function (create) {
if (create === true && this._attrInspIsCurrentlyDisplayed === false) {
this.map.setInfoWindowOnClick(false);
if (this._mapClick === undefined || this._mapClick === null) {
this._mapClick = on(this.map, "click", lang.hitch(this, this._onMapClick));
}
//this._activateTemplateToolbar();
} else if (create === true && this._attrInspIsCurrentlyDisplayed === true) {
if (this._mapClick) {
this._mapClick.remove();
this._mapClick = null;
}
this.map.setInfoWindowOnClick(true);
//this._validateAttributes();
} else {
if (this._mapClick) {
// this._mapClick.remove();
// this._mapClick = null;
}
this.map.setInfoWindowOnClick(true);
if (this.drawToolbar) {
//this._lastDrawnShape = lang.clone(this.drawToolbar._points);
this.drawToolbar.deactivate();
}
}
},
... View more
04-26-2022
07:53 PM
|
0
|
5
|
1833
|
|
POST
|
Thank you for your response. However, my workflow is a bit more complex than your example. I am trying to re-write and duplicate the functionality of another app that I scripted in dojo and ArcGIS API 3.x. You can see the app at: https://svctenvims.dot.ca.gov/pm_tools/ To follow the workflow there is no need to click the other tabs. So, zoom in the map until to be at the 600 feet scale and click on any of the highways in California. If you don't zoom close enough, you will get an error. When you click, you will see a red mark and a green flag. The red flag shows the exact the location of the clicked location and the green flag shows the nearest postmile location from the highway. As you can see, the side bar shows up upon clicking and it displays the template content of the green flag point. The script workflow is: When you click, it creates the red mark point and it displays it. Also, it continues to call REST services to obtain the coordinates for the nearest postmile location. Once it gets the response of the request, it creates the new graphics with the popup template and the green flag symbol. I tried to use the view.popup.open with the graphic associated with the postmile once it is rendered but it doesn't display.
... View more
04-15-2022
06:10 PM
|
0
|
0
|
2144
|
|
POST
|
THank you. Still didn't open. As an alternate, I am thinking to disable popups and just display the calcite card with popup content.
... View more
04-14-2022
10:59 AM
|
0
|
2
|
2171
|
|
POST
|
how to display the popup for a graphic when is added to the map, eliminating the need to click on it. Tried but didn't display. view.graphics.add(thegraphic);
view.popup.open({
features: [thegraphic], // array of graphics
fetchFeatures: true //fetch the content of this feature and display it
});
... View more
04-13-2022
04:11 PM
|
0
|
4
|
2236
|
|
POST
|
I have a combobox under a calcite-tab that has a long list of entries. The issue is that I cannot see the last few entries. I tried with no results the heightScale="l" and css height. <calcite-shell-panel slot="contextual-panel" position="end" detached>
<calcite-block open heading="Testing">
<calcite-tabs>
<calcite-tab-nav slot="tab-nav" id="thetabs">
<calcite-tab-title id="tab1" class="tab1" tab="Tab1">Tab1
</calcite-tab-title>
<calcite-tab-title id="tab2" class="tab2" tab="Tab2" active>Tab2
</calcite-tab-title>
</calcite-tab-nav>
<calcite-tab tab="Tab2">
</calcite-tab>
<calcite-tab tab="Tab1" style="height: 900px;">
<calcite-combobox value="county" label="county" placeholder="County" id="beg_county"
style="padding-bottom: 10px; padding-left:30px; width: 100px;" selection-mode="single">
</calcite-combobox>
</calcite-tab>
</calcite-tabs>
</calcite-block>
</calcite-shell-panel>
... View more
04-06-2022
05:10 PM
|
0
|
2
|
1388
|
|
POST
|
It works. Thank you. Also, as I mentioned in the previous post above, I am trying to make the panel to occupy the whole height. I tried: <calcite-shell-panel slot="contextual-panel" heightScale="l" position="end" detached> but it didn't work. So, I applied the style="height: 900px;" at each of the calcite tab . It works, but is there a better way?
... View more
04-06-2022
03:35 PM
|
0
|
2
|
3255
|
|
POST
|
I fixed that but it still didn't work, because the countyselection.add(option) doesn't work. So, I replaced it with the code you provided. for (let items of countylist) {
const comboItem = document.createElement('calcite-combobox-item');
comboItem.setAttribute('value', items.value);
comboItem.setAttribute('labelText', items.label);
countyselection.appendChild(comboItem);
} Countylist is: <calcite-combobox value="county" label="county" placeholder="County" id="beg_county"
style="padding-bottom: 10px; padding-left:30px; width: 100px;" selection-mode="single">
</calcite-combobox>
... View more
04-06-2022
02:34 PM
|
0
|
4
|
3270
|
|
POST
|
THank you. After I applied the loop it seems that it populates the combobox but the entries are not visible as they are in white color! I didn't use any css. To resolve the issue I applied css for color:black but it is not working. As you can see I tried also to apply the heightScale="l" but it doesn't expand.: <calcite-shell-panel slot="contextual-panel" heightScale="l" position="end" detached>
... View more
04-06-2022
02:20 PM
|
0
|
6
|
3274
|
|
POST
|
I posted this question on the Design Systems forum as well. https://community.esri.com/t5/calcite-design-system-questions/populate-combobox-from-a-local-json-array-file/m-p/1161016#M78 Basically, the question is if we can populate a calcite select/combobox/dropdown from an extenal json file? The code that I used is listed in the script i posted on the design systems (above link) This is for ArcGIS JS API 4.x and I use ES modules.
... View more
04-05-2022
10:13 AM
|
0
|
1
|
1446
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks ago | |
| 1 | 3 weeks ago | |
| 1 | 06-19-2025 10:13 PM | |
| 3 | 02-06-2026 10:44 AM | |
| 1 | 01-08-2026 12:50 PM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|