POST
|
Hi, I am just trying all the layers to an array.. here i am getting parent node but unfortunately i couldn't able to sublayer information.. The purpose of finding the sublayer is to set the definition expression. Any answers would be highly appreciated. Cheers, Srikanth Dasari
... View more
08-22-2018
08:06 AM
|
0
|
6
|
1302
|
POST
|
Thanks for the suggestions. However, feature layer is too slow to render on the map.. and it is requesting multiple requests to the server with different extents which affects the performance.. Any other suggestions ?
... View more
08-10-2018
01:22 PM
|
0
|
0
|
943
|
POST
|
Thank you for the immediate response.. what is the limit if we use IN operator??
... View more
06-26-2018
12:53 PM
|
0
|
1
|
943
|
POST
|
Hi, I need to apply a long query on the layer of a web map in javascript.. Need help on this.. If i apply filter with more than 300 conditions then layer is not working at all for query or anything else.. searchLayer._defnExpr='' //More than 4000 conditions.. Cheers, Srikanth Dasari
... View more
06-22-2018
12:18 PM
|
0
|
4
|
1144
|
POST
|
I found this.... using NearestCoordinate in GeometryEngine namespace.. esri/geometry/geometryEngine | API Reference | ArcGIS API for JavaScript 3.24 Thanks, Srikanth Dasari
... View more
05-18-2018
08:06 AM
|
1
|
0
|
369
|
POST
|
Query Nearest Point.... Please suggest me a solution on this? Cheers, Srikanth Dasari
... View more
05-17-2018
02:38 PM
|
0
|
1
|
502
|
POST
|
Thanks for the reply. I need in the web application using Javascript API.
... View more
05-11-2018
10:49 AM
|
0
|
0
|
535
|
POST
|
Hi, I have to show the distance while drawing a line or area for polygon. If I am drawing a line it should the distance between the line and polygon(resides behind the lines). I will select a polygon first and then while drawing a line(for every vertex might be good) it should show distances for all the segments of the polygon. Please suggest me how to figure this out. Cheers, Srikanth Dasari
... View more
05-11-2018
10:14 AM
|
0
|
3
|
705
|
POST
|
These are the Important things are IgnorePopups and map.getLayer().. that resolved the issue... Happy Monday Thanks, Srikanth Dasari
... View more
04-23-2018
07:23 AM
|
0
|
0
|
1124
|
POST
|
So do I need to customise the code for the attribute Inspector widget?? The only code I am using from the link is related to AttributeInspector... I am using operational layers not creating FeatureLayers... Here is the code I am using.. Looping through response.ItemInfo.itemData.operationalLayers checking if it is a FeatureLayer creating an editable layers array response.ItemInfo.itemData.operationalLayers var layerInfos = [
{
'featureLayer': editableLayers[0],
'isEditable': true,
'disableAttributeUpdate': false,
'fieldInfos': editableLayers[1].popupInfo.fieldInfos
},
{
'featureLayer': editableLayers[1],
'isEditable': true,
'disableAttributeUpdate': false,
'fieldInfos': editableLayers[1].popupInfo.fieldInfos
}
];
attInspector = new AttributeInspector({
layerInfos: layerInfos
}, '<div></div>');
attInspector.startup();
var validFeatures=[];
imgEditorElement.on("click",function(){
angular.element('#editorContainer').css('display','block');
btnBack.on("click",function(evt){
angular.element('#templatePickerContainer').css('display','block');
angular.element('#attributeEditorContainer').css('display','none');
});
var templatePicker = new TemplatePicker({
featureLayers: layers,
grouping: true,
rows: "auto",
columns: 3,
showTooltip: true
}, $attrs.templatePickerTargetId);
templatePicker.startup();
var _mapClick;
if (map) {
_mapClickHandler(true);
}
function _mapClickHandler(create) {
_attrInspIsCurrentlyDisplayed=false;
if (create === true && _attrInspIsCurrentlyDisplayed === false) {
map.setInfoWindowOnClick(false);
if (_mapClick === undefined || _mapClick === null) {
_mapClick = map.on("click", lang.hitch(this,function(evt){
map.infoWindow.hide();
angular.element('#templatePickerContainer').css('display','none');
angular.element('#attributeEditorContainer').css('display','block');
//var layers=map.getLayersVisibleAtScale();
var EditlayerInfos=[];
var deferreds=[];
array.forEach(layers,lang.hitch(this,function(layer){
if(!(layer.allowGeometryUpdates && layer.allowGeometryUpdates==true))
return;
var line = new SimpleLineSymbol();
line.setColor(new Color([36, 36, 36, 1]));
var fill = new SimpleFillSymbol();
fill.setColor(new Color([0, 168, 132, 0.25]));
fill.setOutline(line);
layer.setSelectionSymbol(fill);
//EditlayerInfos.push(layer);
var selectQuery = new Query();
//selectQuery.geometry = editUtils.pointToExtent(this.map, evt.mapPoint, 20);
var pixelWidth = map.extent.getWidth() / map.width;
var toleranceInMapCoords = 20 * pixelWidth;
selectQuery.geometry=new Extent(evt.mapPoint.x - toleranceInMapCoords,
evt.mapPoint.y - toleranceInMapCoords,
evt.mapPoint.x + toleranceInMapCoords,
evt.mapPoint.y + toleranceInMapCoords,
map.spatialReference);
var deferred = layer.selectFeatures(selectQuery,
FeatureLayer.SELECTION_NEW,
lang.hitch(this, function (features) {
array.forEach(features, function (feature) {
//map.graphics.add(new graphic(feature.geometry,feature.symbol));
validFeatures.push(feature);
});
}));
deferreds.push(deferred);
}));
... View more
04-22-2018
09:23 AM
|
0
|
1
|
1124
|
POST
|
Hi, I am using a webmap from the portal and generating map. And I am using ItemInfo operational layers for the attribute Inspector to get the textboxes, save and delete button . However, I am unable to see any attribute data in the Attribute table tag. Here I am not using WAB its just a java script application. I am using the same code in the below URL: ArcGIS API for JavaScript Sandbox If I am using WebMaps, don't I get the attribute table in the Attribute Inspector widget? Cheers, Srikanth Dasari
... View more
04-21-2018
09:06 PM
|
0
|
6
|
1458
|
POST
|
Hi, Here is the code for taking the screenshot of the map. I think you have to use your own hosted layers to get the layers in the screenshot. With this code you can download the image with high resolution. If you want to decrease resolution then you have to the below statements. canvas.toDataURL("image/jpg", 0.5); I can't attach the supported file here so you can download the below mentioned script files from the internet 1. html2canvas.js and html2canvas.svg.js 2. html2proxy.php from the screenshot widget 3. filesaver also from the screenshot widget. <!DOCTYPE html> <html> <head> <title>Test screen shot</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"> <link rel="stylesheet" href="https://js.arcgis.com/3.23/esri/css/esri.css"> <style> #tools { top: 20px; color: #444; height: auto; font-family: arial; right: 20px; margin: 5px; padding: 10px; position: absolute; width: 115px; z-index: 40; border: solid 2px #666; border-radius: 4px; background-color: #fff; } html, body, #mapDiv { padding:0; margin:0; height:100%; } button { display: block; } #mapDiv{ height: 100%; } </style> <script type="text/javascript" src="html2canvas.js"></script> <script type="text/javascript" src="html2canvas.svg.js"></script> <script type="text/javascript" src="CanvasToBlob.js"></script> <script type="text/javascript" src="fileSaver.js"></script> <script src="https://js.arcgis.com/3.23/"></script> <script> var map; require([ "esri/map", "esri/layers/ArcGISDynamicMapServiceLayer", "dojo/dom", "dojo/on", "dojo/domReady!" ], function( Map, ArcGISDynamicMapServiceLayer, dom, on ) { map = new Map("mapDiv", { basemap: "streets", center: [-25.312, 34.307], zoom: 3 }); map.on("load", init); var demographicsLayer = new ArcGISDynamicMapServiceLayer("https://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer"); map.addLayer(demographicsLayer); function init() { on(dom.byId("screenShotTool"), "click", function(evt) { screenShot(); }); } function screenShot(){ // html2canvas(document.getElementById('mapDiv')).then(function(canvas){ // document.body.appendChild(canvas); //}); html2canvas(document.getElementById("mapDiv_container"), { "logging": true, //Enable log (use Web Console for get Errors and Warnings) "useCORS": true, //"allowTaint": true, "proxy": "html2canvasproxy.php", // "timeout": "0", onrendered: function (canvas) { //document.body.appendChild(canvas); //this.screenshotDataURI = canvas.toDataURL("image/jpg", 0.5); canvas.toBlob(function (blob) { saveAs(blob, "Screenshot.png"); }); } }); } }); </script> </head> <body> <div id="tools"> <button id="screenShotTool">Screen shot</button> </div> <div id="mapDiv"></div> </body> </html> Please let me know if you have any questions. Cheers, Srikanth Dasari
... View more
04-19-2018
11:42 AM
|
3
|
1
|
2417
|
POST
|
Please have a look into screenshot widget for the proxy.php in the custom widgets list. Meanwhile, I would like to frame the code properly and will upload the working screenshot widget. Cheers, Srikanth Dasari
... View more
04-18-2018
12:30 PM
|
0
|
3
|
2417
|
POST
|
Hi I am just inserting a new record in sharepoint using soap services. As per my request client moved sharepoint application to https. Problem is sharepoint will use credentials to insert a new record and will use NTLM authentication. I hardcoded the credentials in the widget.js file right now. I would like to keep in the proxy.config. Can anyone please tell me how to do that? Cheers, Srikanth Dasari
... View more
04-02-2018
10:01 AM
|
0
|
0
|
517
|
Title | Kudos | Posted |
---|---|---|
1 | 11-02-2023 09:39 PM | |
1 | 12-12-2017 11:14 PM | |
1 | 05-18-2018 08:06 AM | |
1 | 03-19-2018 03:23 PM | |
3 | 04-19-2018 11:42 AM |
Online Status |
Offline
|
Date Last Visited |
11-16-2023
01:54 AM
|