|
POST
|
Any way to fix this: https://community.esri.com/groups/web-appbuilder-custom-themes?sr=search&searchId=b6fb5f4a-4972-4955-aa2f-b1f72044d1bb&searchIndex=0 https://community.esri.com/community/gis/web-gis?sr=search&searchId=b6fb5f4a-4972-4955-aa2f-b1f72044d1bb&searchIndex=4
... View more
12-08-2017
10:06 AM
|
0
|
3
|
984
|
|
POST
|
Hi Robert, Thanks for the example. However, I am unable to get the button to show in my map. I am using a story map tabbed theme. It uses "app.map" instead of "map". I haven't solved this yet. Let me know if you have any ideas. I will post the script solution when it's solved. -Brandon
... View more
12-07-2017
09:09 AM
|
0
|
0
|
3783
|
|
POST
|
Hi Robert, This example is exactly what I was searching for. Thanks for the help. -Brandon
... View more
11-28-2017
02:27 PM
|
0
|
0
|
1625
|
|
POST
|
This is what I have so far as html: <button data-dojo-type="dijit/form/Button" id="togglebutton" type="button" style="position:absolute; left:5px; bottom:7px; color:#fff; z-index:50;"><div style="width: 350px; height: 290px"> <div style="width: 350px; height: 290px"> <div id="tc1-prog"></div> </button> This is the script: require(["dijit/layout/TabContainer", "dijit/layout/ContentPane", "dojo/domReady!"], function(TabContainer, ContentPane){ var tc = new TabContainer({ style: "height: 100%; width: 100%;" }, "tc1-prog"); var cp1 = new ContentPane({ title: "Food", content: "We offer amazing food" }); tc.addChild(cp1); var cp2 = new ContentPane({ title: "Drinks", content: "We are known for our drinks." }); tc.addChild(cp2); tc.startup(); }); -Brandon
... View more
11-28-2017
11:32 AM
|
0
|
2
|
1625
|
|
POST
|
I plan on inserting content into the tabbed containers later on. Two select functions. A draw select in one tab and a search select in the other.
... View more
11-28-2017
10:33 AM
|
0
|
0
|
1625
|
|
POST
|
Hi Robert, The customized version is not. The arcgis online version is at this link: https://caltrans.maps.arcgis.com/apps/MapSeries/index.html?appid=9c9b080c67af4d2db74b663efba971bd I believe it has something to do with putting .setAttribute ("disabled", "") on the BaseMap Toggle. The tab with the Resources is the tab I would like to the BaseMap Toggle removed. -Brandon
... View more
11-28-2017
10:28 AM
|
0
|
1
|
1473
|
|
POST
|
Hello, Does anybody have any experience using the declarative method to create a dijit button that opens a tabbed container onclick? -Brandon https://community.esri.com/groups/web-app-builder-custom-widgets?sr=search&searchId=22738830-37c1-44ac-a9c0-9ac895e649cd&searchIndex=3 https://community.esri.com/community/gis/web-gis/storymaps?sr=search&searchId=ac5c1ff9-6bca-4e5b-8efc-62e87a87f7ff&searchIndex=0
... View more
11-28-2017
10:11 AM
|
0
|
4
|
1985
|
|
POST
|
Hi Robert, No problem. I appreciate the example. I will use the in the future in other apps. -Brandon
... View more
11-28-2017
09:59 AM
|
0
|
0
|
1901
|
|
POST
|
Yes I would like to know what code to use in the switch case to remove the basemap toggle since I already have a switch case in the app for the tooltips. I have not thought about jquery or dojo to query the toggle and using the style to set the dom elements display to none. Is that easy to do? Is that a simple css change?
... View more
11-28-2017
07:22 AM
|
0
|
5
|
1473
|
|
POST
|
Hello, I am customizing a story map running on arcgis api 3.22. I am trying to use the switch javascript method to remove the basemap toggle on some of the tabs. This is what I have: let tabs = $('.entries > .nav > .entry > .entryLbl '); tabs.each(function (idx, liItem) { switch (liItem.text) { case 'Electric': //liItem.on('click', function () { // console.log('got a click on electric'); //}); liItem.setAttribute('title', 'To download a Los Angeles Substructure Plan: \n 1. Zoom to a substructure quad\n 2. Click the area inside the quad \n 3. Click "More info"'); break; case 'Gas/Oil': liItem.setAttribute('title', 'This tab contains non-hazardous gas/oil utilities. Visit our confidential \n gas/oil application at: http://sv07gis6/undergroundconfidential'); break; case 'Sanitation': liItem.setAttribute('title', 'Download LA City SanGIS Data in its entirety at:\n http://geohub.lacity.org/datasets?q=sewer \nDownload LACSD GIS Data in its entirety at:\n http://data-lacsdgis.opendata.arcgis.com'); break; case 'Stormwater': liItem.setAttribute('title', 'Download LA County Stormwater GIS Data in its entirety at: \n http://dpw.lacounty.gov/fcd/stormdrain/disclaimer.cfm \n and click "File Geodatabase Download"'); break; case 'Download': liItem.setAttribute('title', 'Use this tab to download snippets of all utility types within\n up to a 500-foot range in .shp or .dgn formats'); break; case 'Resources': liItem.setAttribute('title', 'Please contact D7GIS to help with our resources list'); break; } }) https://community.esri.com/community/gis/web-gis/storymaps?sr=search&searchId=78ff8351-2ac6-4ff5-aac4-163acd1a492e&searchIndex=0 -Brandon
... View more
11-27-2017
05:36 PM
|
0
|
7
|
1652
|
|
POST
|
Sorry for the late response by the way. I was trying ways on getting it to work with no luck and then got interrupted by the holidays.
... View more
11-27-2017
10:06 AM
|
0
|
2
|
1901
|
|
POST
|
Hi Robert, Yes. This is a great sample I will incorporate in the future on other projects. Sorry for the trouble. For this project, which is a storymap: https://caltrans.maps.arcgis.com/apps/MapSeries/index.html?appid=9c9b080c67af4d2db74b663efba971bd (that is the AGOL version; the other is on a non-public facing server), I am still figuring out a basemap toggle solution. I found that my basemap layer on all maps in the story is app.map.getLayersVisibleAtScale()[0]. Which is the Iayer: https://www.arcgis.com/sharing/rest/content/items/0e0aa048cb9a42de91ae287fc5632fac/resources/styles/root.json in your sample. I would like a solution that uses the arcgis api 3.22 basemap toggle using a basemaptoggle.on selection change or something like: baseMapToggle = new BasemapToggle({ map: app.map, basemap: "myImagery", toggle: function () { if (isWorldView) { isWorldView = false; // switch to Imagery app.map.getLayer(app.map.layerIds[1]).setVisibility(false); app.map.getLayer(app.map.layerIds[0]).setVisibility(true); } else { isWorldView = true; // switch to world view app.map.getLayer(app.map.layerIds[0]).setVisibility(false); app.map.getLayer(app.map.layerIds[1]).setVisibility(true); } } }, "BasemapToggle"); baseMapToggle.startup(); that toggles the other layer in your sample. Any examples on turning off layers using something like app.map.getLayer(app.map.layerIds[0]).setVisibility(false); with a basemap toggle? Brandon
... View more
11-27-2017
09:49 AM
|
0
|
3
|
1901
|
|
POST
|
Hi Nolwenn, I am trying to do the same thing in a storymap series. I want to have buttons on the tabs with maps only. Thanks, Brandon
... View more
11-17-2017
03:19 PM
|
0
|
0
|
901
|
|
POST
|
Hi Robert, I am using this web map id: ba7b97b7d6b24c6381eba23062f8aab1 and trying to call or add this basemap: https://basemaps.arcgis.com/v1/arcgis/rest/services/World_Basemap/VectorTileServer Brandon
... View more
11-17-2017
10:40 AM
|
0
|
16
|
3783
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-06-2017 08:25 AM | |
| 1 | 01-05-2018 10:12 AM | |
| 1 | 01-09-2018 10:27 AM | |
| 1 | 01-05-2018 07:36 AM | |
| 1 | 10-03-2017 10:23 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:25 AM
|