POST
|
Hi Arun, You can get the portal groups based on the logged in user permissions from Portal Object as shown in the below given code snippet: define([ 'dojo/_base/declare', 'jimu/portalUtils', ... ], function(declare, portalUtils, ...) { var aPortal = portalUtils.getPortal(this.appConfig.portalUrl); var gArray = aPortal.featuredGroups; }); The group resource represents a group within the Portal. A group resource represents a group (e.g., "San Bernardino Fires"). The visibility of the group to other users is determined by the access property. If the group is private no one except the administrators and the members of the group will be able to see it. If the group is shared with an organization, then all members of the organization will be able to find the group. View the ArcGIS Portal API REST documentation for the Group for more details. (This is from the API documentation PortalGroup | API Reference | ArcGIS API for JavaScript 3.26 ) Hope this helps you. Regards, Mohammad Ashraf Dar Gistec
... View more
12-06-2018
11:59 PM
|
0
|
0
|
845
|
POST
|
Hi Derek, If we somehow try to customize the login page such as hiding esri logo etc, does this have any impact on the license? Regards, Mohammad Ashraf
... View more
12-25-2017
01:39 AM
|
0
|
1
|
1855
|
POST
|
Hi Mukta, The maptip in the 3.x JavaScript APIs for Arcgis was displaying the content in it from the map service that is already loaded into the memory. However in the latest APIs the logic has completly chaged to load the latest content from the server everytime user clicks on a feature in the map. Therefore if the maptip is bound on mouseover, it would have lots of requests to the server which will impact the performance. Hence the maptip is bound on click. However to fulfill our requirement, I wrote a small piece of code to display the maptip on mouse hover using the event that is also mentioned by Jack. Here is the sample code: var featureDetailsRequest; app.sceneView.on("pointer-move", function (args) { app.sceneView.hitTest(args).then(function (evt) { if (evt.results[0].graphic == null) { app.sceneView.popup.close(); } else { app.sceneView.popup.dockOptions = { // Disable the dock button so users cannot undock the popup buttonEnabled: false, // Dock the popup when the size of the view is less than or equal to 600x1000 pixels breakpoint: false, position: "top-right" }; var query = evt.results[0].graphic.layer.createQuery(); query.objectIds = [evt.results[0].graphic.attributes.objectid]; query.outFields = ["*"]; // You can also build the output fields based on the field mentioned in the Popup content definition to reduce the content served by the server. // This is to cancel any existing running requests if (featureDetailsRequest && !featureDetailsRequest.isFulfilled()) { featureDetailsRequest.cancel(); } featureDetailsRequest = evt.results[0].graphic.layer.queryFeatures(query).then(function (result) { var content = "Popup Definition Here"; // You can use esriLang.substitute() to substitute the actual values var title = "Popup Title Here"; // You can use esriLang.substitute() to substitute the actual values app.sceneView.popup.open({ location: evt.results[0].mapPoint, // location of the click on the view title: title, // title displayed in the popup content: content, // content displayed in the popup }); }); } }); }); Note: The above code snippet will send requests to server on every mouse move, I have wrote a small logic to send request per object under mouse pointer, if you need that, please let me know. Regards, Mohammad Ashraf
... View more
12-07-2017
03:44 AM
|
0
|
0
|
1290
|
POST
|
Hi Andrew, Could you add failure callback and log the message returned. Regards, Mohammad Ashraf
... View more
12-06-2017
05:53 AM
|
0
|
9
|
1185
|
POST
|
Hi Andrew, Are you adding esriRequest as AMD? because cannot see the esriRequest module is loaded anywhere in your code. Also is the code before esriRequest executing? Regards, Mohammad Ashraf
... View more
12-06-2017
04:13 AM
|
0
|
14
|
1185
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|