|
POST
|
I am using someone else's layer in my webmap: http://www.dot.ca.gov/hq/env/gis/stormwater/sdsi/d7/photos/dp/110_s_22_12966_dis_34_0358_118_2749/index.html if I remove the last 10 characters so it reads: http://www.dot.ca.gov/hq/env/gis/stormwater/sdsi/d7/photos/dp/110_s_22_12966_dis_34_0358_118_2749/. Then I can add 1.jpg so its reads: http://www.dot.ca.gov/hq/env/gis/stormwater/sdsi/d7/photos/dp/110_s_22_12966_dis_34_0358_118_2749/1.jpg I wanted to do this using a script within the configure pop/add photo section of arcgis online if possible. I have seen this done before as I stated earlier in this thread: Show attached images inside popup with ArcGIS Online? - Geographic Information Systems Stack Exchange (What is the programming language in this thread? Javascript?) I have several layers like this and this wouldn't be practical to download everyone and make the field changes in arcmap Brandon
... View more
12-22-2017
04:15 PM
|
0
|
1
|
1212
|
|
POST
|
Is it possible to remove part of the url I want to use to show photos in a popup through the ArcGIS Online image configuration console? I found a link that made me think this might be possible here: Show attached images inside popup with ArcGIS Online? - Geographic Information Systems Stack Exchange. Any suggestions? Brandon https://community.esri.com/community/gis/web-gis/web-appbuilder?sr=search&searchId=632f7fb4-464e-4241-b6e3-c5b532863535&searchIndex=2 @arcgis
... View more
12-22-2017
12:03 PM
|
0
|
7
|
1394
|
|
POST
|
Is it possible to use <iframe src="www.google.com"></iframe> to show webpage images in an arcgis online popup? Brandon https://community.esri.com/community/gis/web-gis/web-appbuilder?sr=search&searchId=506a9f1c-8a7b-40ca-a5f7-812b9df2db1e&searchIndex=1
... View more
12-22-2017
11:58 AM
|
0
|
23
|
13603
|
|
POST
|
Hello, I am changing my app from version 4.5 to 3.23. I am using app.view.ui.add(this.panel, "top-left"); to show a panel in the 4.5 version. Since 3.23 does not have view ui, what is the easiest way to show a panel? https://community.esri.com/groups/web-app-builder-custom-widgets?sr=search&searchId=2b6fa315-fe57-4465-af3e-a2bd7051681d&searchIndex=0 https://community.esri.com/groups/web-appbuilder-custom-themes?sr=search&searchId=d657ff15-836d-47d5-bb6f-873606e3e9c1&searchIndex=1
... View more
12-22-2017
10:21 AM
|
0
|
1
|
909
|
|
POST
|
I was going to try something like this when I get the chance:
dojo.create("button",{id: "btnOK",type: "button"},dojo.body()); var btnOK = new dijit.form.Button({ label: "OK", showLabel: true, style: "height: 20px;" }, "btnOK"); dojo.style("btnOK","width","40px");
Brandon
... View more
12-21-2017
03:20 PM
|
0
|
0
|
1704
|
|
POST
|
That's what I thought after doing some research. I will get back to it later and repost. It isn't urgent of when it's fixed.
... View more
12-20-2017
03:31 PM
|
0
|
3
|
1704
|
|
POST
|
Oh yeah. Thanks. You are right. I still cannot get it to work: var myButton1= new Button({ label: "I Accept", onClick: function(){ splashPage2.show(); splashPage1.hide(); domStyle.set(splashPage2.closeButtonNode, { display: 'none' }); domStyle.set(myButton1, "width", "100px"); } }).placeAt(splashPage1.containerNode); it might need an id to be changed because maybe it will automatically override my script and just inherit the default dojo style
... View more
12-20-2017
02:55 PM
|
0
|
5
|
1704
|
|
POST
|
Hello, I would like to make a few small css changes to some buttons on my splash pages. var myButton1= new Button({ label: "I Accept", onClick: function(){ splashPage2.show(); splashPage1.hide(); domStyle.set(splashPage2.closeButtonNode, { display: 'none' }); domStyle.set("myButton1", {fontSize:"5pt",letterSpacing:"1.2em"}); } }).placeAt(splashPage1.containerNode); The part in bold does not change the style. Any suggestions to get the changes to work are appreciated. I stopped searching reference material online at the moment. https://community.esri.com/groups/web-appbuilder-custom-themes?sr=search&searchId=2867be5a-d1d5-477d-b03f-d5337285cec7&searchIndex=0 https://community.esri.com/groups/web-app-builder-custom-widgets?sr=search&searchId=ec038c3c-7cc7-4a32-bf2c-4c36532fd3d1&searchIndex=2
... View more
12-20-2017
02:04 PM
|
0
|
7
|
2345
|
|
POST
|
Wow Nathan. This is great. Thanks for your time explaining this. I checked out the shortlist to use for my project instead but it doesn't seem you can use anything other than point markers and not map services which are what my maps have. I am going to review what you found on $('.mainMediaContainer.active').index() for the tabs. This is what I have so far (same solution as above that doesn't change all tabs, just active map, but with thumbnails instead of a button (like yours)): var togglebasemap = dom.byId("togglebasemap"); on(togglebasemap, "click", function () { var baseLyr = app.map.getLayer(app.map.layerIds[0]); if(baseLyr.url === "https://www.arcgis.com/sharing/rest/content/items/0e0aa048cb9a42de91ae287fc5632fac/resources/styles/root.json"){ app.map.removeLayer(baseLyr); var tiled = new ArcGISTiledMapServiceLayer("http://public.gis.lacounty.gov/public/rest/services/LACounty_Cache/LACounty_Base/MapServer"); app.map.addLayer(tiled, 0); $('#togglebasemap').css('background-image', 'url(http://caltrans.maps.arcgis.com/sharing/rest/content/items/0e0aa048cb9a42de91ae287fc5632fac/info/thumbnail/thumbnail.png)'); } else if(baseLyr.url === "http://public.gis.lacounty.gov/public/rest/services/LACounty_Cache/LACounty_Base/MapServer"){ app.map.removeLayer(baseLyr); var vectorTileLayer = new VectorTileLayer("http://www.arcgis.com/sharing/rest/content/items/0e0aa048cb9a42de91ae287fc5632fac/resources/styles/root.json"); app.map.addLayer(vectorTileLayer, 0); $('#togglebasemap').css('background-image', 'url(http://caltrans.maps.arcgis.com/sharing/rest/content/items/10df2279f9684e4a9f6a7f08febac2a9/info/thumbnail/ago_downloaded.jpg)'); } }); I will repost with any changes. Brandon
... View more
12-20-2017
01:59 PM
|
0
|
0
|
1241
|
|
POST
|
No problem. Thanks for the response. I will post any solutions.
... View more
12-19-2017
07:37 AM
|
0
|
0
|
1005
|
|
POST
|
Hi Robert, This is what I have: var togglebasemap = dom.byId("togglebasemap"); on(togglebasemap, "click", function () { var baseLyr = app.map.getLayer(app.map.layerIds[0]); if(baseLyr.url === "https://www.arcgis.com/sharing/rest/content/items/0e0aa048cb9a42de91ae287fc5632fac/resources/styles/root.json"){ app.map.removeLayer(baseLyr); var tiled = new ArcGISTiledMapServiceLayer("http://public.gis.lacounty.gov/public/rest/services/LACounty_Cache/LACounty_Base/MapServer"); app.map.addLayer(tiled, 0); $('#togglebasemap').css('background-image', 'url(http://caltrans.maps.arcgis.com/sharing/rest/content/items/0e0aa048cb9a42de91ae287fc5632fac/info/thumbnail/ago_downloaded.jp g)'); } else if(baseLyr.url === "http://public.gis.lacounty.gov/public/rest/services/LACounty_Cache/LACounty_Base/MapServer"){ app.map.removeLayer(baseLyr); var vectorTileLayer = new VectorTileLayer("http://www.arcgis.com/sharing/rest/content/items/0e0aa048cb9a42de91ae287fc5632fac/resources/styles/root.json"); app.map.addLayer(vectorTileLayer, 0); $('#togglebasemap').css('background-image', 'url(http://caltrans.maps.arcgis.com/sharing/rest/content/items/10df2279f9684e4a9f6a7f08febac2a9/info/thumbnail/ago_downloaded.jpg)'); Not sure if this is correct. I used jquery to change the thumbnail onclick.
... View more
12-19-2017
07:34 AM
|
0
|
2
|
1363
|
|
POST
|
Only the button appears in the map which was added to the map div in the html. The table does not show when you click the button yet. I believe it might be something not too challenging that needs some revision for it to work.
... View more
12-19-2017
07:25 AM
|
0
|
1
|
1005
|
|
POST
|
Hello, I created a table that I have in my html that I am trying to access from a button (PMSelect) that I also have in my html. The table (script id="utilitySelectorTmpl") and javascript (utilitySelectorModule.js to query the restpage) to populate the table are done. I have not been able to open the table using onclick. This is what I have: var utilitySelectorToolBtn = dom.byId("PMSelect"); on(utilitySelectorToolBtn, "click", function (event) { if (app.isutilitySelectorModuleOpen === true) { app.utilitySelectorModule.hide(); app.isUtilitySelectorOpen = false; } else { // not open app.utilitySelectorModule.show(); app.isutilitySelectorModuleOpen = true; } }); I haven't yet specified the location of table when open. Maybe this could be the reason but I am not sure. This is a portion of my script: app.utilitySelectorModule = { countyField: 'Cnty', routeField: 'Route', postmileField: 'DYNSEGPM', isVisible: false, template: {}, panel: {}, countyDllEl: {}, routeDllEl: {}, beginPostMarkerDdlEl: {}, endPostMarkerDdlEl: {}, init: function () { }, // init show: function () { require(["dojo/on", "dojo/_base/declare", "dojo/dom-construct", "esri/tasks/QueryTask", "esri/tasks/query" ], function (on, declare, domConstruct, QueryTask, Query) { let ctx = app.utilitySelectorModule; ctx.isVisible = true; if (!ctx.panel.click) { ctx.panel = domConstruct.toDom("<div class='utilitySelectorPnl'></div>"); domConstruct.place(ctx.panel, 'mainHtmlBody') template = $("#utilitySelectorTmpl"); ctx.panel.innerHTML = template.html() Attached are the two js files. Custom scripts has the button and utilityselectormodule has the query commands for the table. Any help is greatly appreciated. Brandon ArcGIS API for JavaScript Web GIS Web AppBuilder Custom Widgets
... View more
12-18-2017
01:24 PM
|
0
|
4
|
1817
|
| 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
|