POST
|
OK, we were using ArcGISDynamicMapServiceLayer and that didn't work. The one you are suggesting works. I see now it's a version thing. Thank you for your help.
... View more
09-12-2019
11:24 AM
|
0
|
0
|
630
|
POST
|
Greetings, We are using the esri 4.11 javascript library for our mapping solution. For our development environment, we have been using the default configuration which connects to the remote tile server (https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer). Now we need to point to our local in-house server. How and where is that configured? Thanks, Jeff
... View more
08-27-2019
04:38 AM
|
0
|
3
|
848
|
POST
|
Thank you, Robert, for the reply. Is there some other way around this, maybe using something else besides actions? It seems that there must be some other hook to tap into. Thanks.
... View more
05-02-2019
06:53 AM
|
0
|
1
|
559
|
POST
|
Greetings, On our map we are displaying some simple-marker symbols that are configured to show popups when clicked. On these popups we need to have clickable text or buttons that will facilitate the user drilling down in order to get more information. I have defined some actions for this purpose. However, I am not able to style or customize the look and feel of the layout of the display for the clickable actions. With the actionsMenuEnabled set to true, we get this: With the actionsMenuEnable set to false, we get this: How can we take control of these clickable "buttons" and display them on the popup as a list, maybe formatted to look like a hyperlink, or whatever we decide? We are using arcgis 4.11. Here is some code: loadModules(["esri/Map", "esri/views/MapView", "esri/Graphic", "esri/geometry/Point", "esri/symbols/TextSymbol", "esri/PopupTemplate", "esri/support/actions/ActionButton"]) .then(([Map, MapView, Graphic, Point, PopupTemplate, ActionButton]) => { const map = new Map({ basemap: "streets" }); const view = new MapView({ container: "viewDiv", map: map, zoom: 8, center: [-73.773, 42.6344], popup: { actionsMenuEnabled: false } }); view.goTo({ target: view.graphics }); var clickAction = { title: " Click Action", id: "click-action" }; var clickAction2 = { title: " Click Action 2", id: "click-action2" } var func = (event) => { if (event.action.id === "click-action") { alert("in the click action!"); } if (event.action.id === "click-action2") { alert("in the click action2!"); } } view.popup.on("trigger-action", func); var popupTemplate = new PopupTemplate({ title: "Check this out!", content: "<div>this is the content</div>", actions: [clickAction] }); popupTemplate.actions.push(clickAction2); I hope this is clear. Thank you very much.
... View more
05-02-2019
05:13 AM
|
0
|
4
|
663
|
Online Status |
Offline
|
Date Last Visited |
06-28-2021
05:41 AM
|