|
POST
|
Hi, thanks for the reply, but I don't think that is answering my issue. I have a layer published with ArcGIS server (also available via Portal) (currently secured so only I can see it) which I need to use in some javascript I have written (above) not in a web map template from ArcGIS Online which those instructions seem to refer too
... View more
03-03-2020
02:08 AM
|
0
|
0
|
3409
|
|
POST
|
Do I need to go down the route of having my own proxy? The agol proxy option only seems relevant for premium services as it asks for me to select geocoding etc, where as this is just viewing a map service. seems this process could be an awful lot easier
... View more
03-02-2020
10:12 AM
|
0
|
1
|
3409
|
|
POST
|
Hi I have read all kinds of help documentation on this subject but can't seem to find the best fit, or get any to work. I have written the javascript app below. The layer being used is secured as I would not want the contents being made available to everyone, except for people who are using the app. They will have already logged in to get this far so I just need the application to handle the logging in to get the map data back. (ie at the moment it asks for an ArcGIS server log in). I can find lots of information about accessing secure applications, but not specific layers within a javascript app...any help would be great. <html> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no"> <title>DH Test Map</title> <style> html, body, #viewDiv { padding: 0; margin: 0; height: 100%; width: 100%; } </style> <link rel="stylesheet" href="https://js.arcgis.com/4.14/esri/themes/light/main.css"> <script src="https://js.arcgis.com/4.14/"></script> <script> require([ "esri/WebMap", "esri/views/MapView", "esri/layers/FeatureLayer", "esri/core/urlUtils", "esri/tasks/support/Query", ], function(WebMap, MapView, FeatureLayer, urlUtils, Query) { var urlObject = urlUtils.urlToObject(document.location.href); runValidaty(urlObject); var impactedPropertiesLayer = new FeatureLayer({ url: "https://MYENTERPRISESERVER/server/rest/services/TEST/AffectedPropertiesSecure/MapServer/0", definitionExpression:expression, popupTemplate: { title: "{UPRN}", content: "{ImpactLevel_ID}"}, }); impactedPropertiesLayer.when(function() { return impactedPropertiesLayer.queryExtent(); }).then(function(response) { view.goTo(response.extent); }); var webmap = new WebMap({ portalItem: { id: "1a409e5d6939452cbb27fee5f05a2140" } }); var view = new MapView({ container: "viewDiv", map: webmap, zoom: 6 }); webmap.add(impactedPropertiesLayer) var expression; function runValidaty(UrlPropertiesObj){ expression =""; Object.keys(UrlPropertiesObj.query).forEach(function(key,index) { var objectValue = UrlPropertiesObj.query[key]; if(objectValue){ //first time round if(parseInt(objectValue)){ expression += key + "="+objectValue+""; }else{ expression += key + "='"+objectValue+"'"; } var nextObj = Object.keys(UrlPropertiesObj.query)[index+ 1]; if(UrlPropertiesObj.query[nextObj]){ //yes there is a property in the next loop expression += "AND " } } }); } }); </script> </head> <body> <div id="viewDiv"></div> </body> </html>
... View more
03-02-2020
07:16 AM
|
0
|
6
|
3556
|
|
POST
|
I’m away from my computer til tomorrow now (UK time) so will try again then. Roughly where should it be added?
... View more
02-24-2020
09:03 AM
|
0
|
2
|
3201
|
|
POST
|
Hi Ken...thanks for that. I have tried using that but I can not seem to get it working, I think I must be putting it in the wrong place. I am either getting errors, or it is wiping my map out completely to a white page
... View more
02-24-2020
07:36 AM
|
0
|
4
|
3201
|
|
POST
|
Hi...I am OK with the basic filtering. I need the filter condition to be taken from the URL parameters however as people will be linking to this from elsewhere
... View more
02-24-2020
06:56 AM
|
0
|
0
|
3201
|
|
POST
|
Hi I have seen a couple of similar questions but can't seem to get the answers to fit mine, I have to admit I am new to this and this is the first map I have created this way so apologies if this is basic stuff (I have training booked in). I have built a map which uses some data, filters it and zooms to those records when loaded. I want the filter term to be controlled by a URL parameter, so if go to www.mysite.com?filter=AreaA it applies that, filters and zooms. The code I have so far is: <html> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no"> <title>DH Test Map</title> <style> html, body, #viewDiv { padding: 0; margin: 0; height: 100%; width: 100%; } </style> <link rel="stylesheet" href="https://js.arcgis.com/4.14/esri/themes/light/main.css"> <script src="https://js.arcgis.com/4.14/"></script> <script> require([ "esri/WebMap", "esri/views/MapView", "esri/layers/FeatureLayer", "esri/core/urlUtils", "esri/tasks/support/Query" ], function(WebMap, MapView, FeatureLayer, urlUtils, Query) { var impactedPropertiesLayer = new FeatureLayer({ url: "https://MYARCGISSERVER/arcgis/rest/services/Test/IMAffectProperties/MapServer/0", definitionExpression: "Locality='AreaA'", ***<this is where the filter is hardcoded at the moment*** popupTemplate: { title: "{UPRN}", content: "{ADDRESS}"}, }); impactedPropertiesLayer.when(function() { return impactedPropertiesLayer.queryExtent(); }).then(function(response) { view.goTo(response.extent); }); var webmap = new WebMap({ portalItem: { id: "**PortalID of my base maps redacted**" } }); var view = new MapView({ container: "viewDiv", map: webmap }); webmap.add(impactedPropertiesLayer); }); </script> </head> <body> <div id="viewDiv"></div> </body> </html>
... View more
02-24-2020
06:22 AM
|
0
|
8
|
3678
|
|
POST
|
I am trying to build some webhooks using Portal. I have created a couple of basic ones set to send all events to Microsoft flow, this in turn is adding the raw data sent to a row of a spreadsheet. This side is all working fine. However when I try and set specific trigger events (at the moment I am most interested in when users sign in and out) I hit issues. It will allow we to set the "Update the events you would like to trigger this webhook" to /users, but this does not seem to be triggering when a user sign in or sign out. If I specify this for one user as it says I can do here: ie /users/*myusername*/signIn it reports: Unable to create or update webhook.Invalid URL or event has been specified for this webhook with name or id 'Users Webhook 2' The same occurs whatever I put in the place of the username, and whether the user is a AD user or a portal user. Am i misinterpreting what I am supposed to be able to do with these webhooks? Thanjs
... View more
11-07-2019
07:12 AM
|
1
|
0
|
1003
|
|
POST
|
Typically I solved this not long after posting! I had been looking for a while before. Anyway, for completeness, I got rid of the scroll bar by deleting the overflow-x and overflow-y settings completely in the .jimu-widget-splash-desktop .custom-content section of ...widgets\Splash\css\style.css. (around line 134)
... View more
01-29-2018
03:37 AM
|
0
|
0
|
612
|
|
POST
|
Hi I have built an app which includes a splash screen via the Splash widget. In Chrome it is fine, but in IE it gives a scroll bar, which doesn't actually do anything. I have tried resizing the splash and the contents but it is always there. Any suggestions?
... View more
01-29-2018
02:57 AM
|
0
|
1
|
734
|
|
POST
|
Thanks Robert, I had tried that but needed to clear my cache before testing. All working as I'd like now
... View more
07-27-2016
06:42 AM
|
0
|
0
|
638
|
|
POST
|
Hi I have built an app in Web AppBuilder, when a user users it for the first time it goes to the default extent as defined by the default extent options here: Map and Scene—Web AppBuilder for ArcGIS | ArcGIS However the next time that user users the app it takes them back to where they were last, rather than the default extent. Does anyone know how I cna have the app start at the default extent each time the map is launched or refreshed? I am guessing there is some caching going on Thanks
... View more
07-27-2016
04:14 AM
|
0
|
2
|
1619
|
|
POST
|
Hi Robert One thing, do you know if it is possible to not have this section, I only have one searchable layer and want every selection to be a new one so don;t really need any of that. As this will be seen by members of the public I like to try and make the interface have as few options as poissible. I have tried marking various divs in the code as visibility: hidden or display: none but has no affect EDIT: Ignore this, I have worked it out
... View more
03-16-2016
03:15 AM
|
1
|
0
|
1101
|
|
POST
|
If anyone has the specific issue I had and reads this. I used the predefined list, entered all choices and set the Value for an 'Any' option as an underscore '_'. With a query of FIELD LIKE '[Value]%' this brings back all records so essentially is like un-filtering that layer
... View more
03-14-2016
07:35 AM
|
1
|
0
|
1101
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 10-06-2025 04:21 AM | |
| 2 | 12-07-2021 05:29 AM | |
| 1 | 11-07-2019 07:12 AM | |
| 1 | 03-14-2016 07:35 AM | |
| 1 | 03-16-2016 03:15 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-18-2025
05:16 AM
|