POST
|
Hi Anthony, Thanks for your reply. I am now able to achieve this with out using Geo event server by using the following example. Here websocket and stream layer was used and it works great. /blogs/nicogis/2014/08/05/websocket-with-streamlayer
... View more
10-04-2017
04:10 AM
|
0
|
0
|
591
|
POST
|
Any help concerning this issue will be highly appreciated!
... View more
09-15-2017
11:21 PM
|
0
|
2
|
591
|
POST
|
Hi All, I am trying to plot my real time location data feed on top of my base map. I am not using Geoevent server to create the data feed, I am on the process of creating my own web socket server with node.js which will emit Esri Json data. Please guide us with out using Goevent how can we create the data feed and can populate the data using stream layer on the map. I am refering this below link StreamLayer | API Reference | ArcGIS API for JavaScript 3.21 where in 3rd paragraph it is mentioned that "You may also use your own web socket server, as long as it emits geographic features in the Esri JSON format. " So I believe with out using the Geoevent server we can also pushed the realtime data on the map. It would be of great help if anyone can guide us how to implement that.
... View more
09-14-2017
07:09 AM
|
0
|
3
|
1939
|
POST
|
Hi Chad, Thanks for your reply. Here is the sample code. try { if (message.SelectedLayers.Count != 0) { var offlayer = message.SelectedLayers; Acr.UserDialogs.UserDialogs.Instance.ShowLoading("Loading Offline Map", Acr.UserDialogs.MaskType.Black); ArcGISTiledLayer layer = await ShowBaseMapsMenuEditMessage.OffLineMap.LoadTileCache("/storage/emulated/0/SmartMaps/" + “FileNameIS.tpk"); // Create basemap Basemap basemap = new Basemap(); // Get layers from file basemap.BaseLayers.Add(layer); Map = new Map(basemap); if (layer.LoadStatus != Esri.ArcGISRuntime.LoadStatus.Loaded) { Acr.UserDialogs.UserDialogs.Instance.ShowSuccess("Could not load tile cache", 1000); } else { Acr.UserDialogs.UserDialogs.Instance.ShowSuccess("Tile cache loaded successfully.", 1000); } } } catch (Exception rr) { Acr.UserDialogs.UserDialogs.Instance.ShowSuccess("Incourrect format", 1000); } Thanks, Niladri
... View more
12-30-2016
05:03 AM
|
0
|
2
|
797
|
POST
|
Hi All, We are having an issue regarding the offline basemap. We are able to download the arcgis online base map in our device. using the code given in this forum, .NET Xamarin gist to download ArcGIS basemap tiles for offline use. · GitHub However after downloading when we are trying to load the offline map( using the sample code given in this link Offline mapping ideas — Xamarin Forums) from our local storage and it is not loading in the background if we switch off the device internet connection. But surprisingly if we switch on the internet the offline map was loading in the background from the local storage. we are using xamarin forms for android to develop the application. Any help concerning this issue will be highly appreciated. Thanks, Niladri Banerjee GIS Developer
... View more
12-28-2016
03:42 AM
|
0
|
7
|
2652
|
POST
|
Hi Robert, For your better understanding I have simplified the code. In the attachment I have shared three java script files( bootstrapmap.js,main.js,function.js) which we are using for the spatial editing. From the bootstrapmap.js file we are setting default pop up window to false and then we are calling the function "displayPopupcontent()" function of function.js file and in this function we have taken the sample code of "https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=popup_sidepanel" and from main.js we are calling "initEditing()" function of function.js file and in this function we have taken the sample code of "https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=ed_default_editingwidget". Hope I am able to make you understand the code and still if you have any question please let me know. Thanks, Niladri
... View more
11-29-2016
08:53 AM
|
0
|
0
|
720
|
POST
|
Hi Saroj, Thanks for your reply, actually we are using ArcGIS Online services can you please tell me where we will get the geometry service for ArcGIS online? I would also like to let you know that without using the geometry service we are able to do the spatial editing for line and polygon layer. Thanks, Niladri
... View more
11-29-2016
06:32 AM
|
0
|
0
|
720
|
POST
|
Here is the code. ********************************************************************************************************************************* this._map.infoWindow.set("popupWindow", false); this.initializeSidebar(this._map); initializeSidebar: function(map){ var popup = map.infoWindow; connect.connect(popup, "onSelectionChange", function(e){ var edithasClass = $("#editFeature").hasClass("active"); displayPopupContent(popup.getSelectedFeature(),domStyle,menus,DeleteFeature,edithasClass); }); //when the selection is cleared remove the popup content from the side panel. connect.connect(popup, "onClearFeatures", function(){ var edithasClass = $("#editFeature").hasClass("active"); if(edithasClass==false){ $("#sidepanelAllPourposeContent").html(''); } }); } main.js $("#editFeature").on('click', function(e) { $("#editFeature").toggleClass("active"); var edithasClass = $("#editFeature").hasClass("active"); if(edithasClass==false){ var stackedAreaLegend = dijit.byId('sidepanelSpatialEditing'); if (stackedAreaLegend) { stackedAreaLegend.destroyRecursive(true); } } if(edithasClass==true){ initEditing(e,array,Editor,domStyle,menus,i18n,draw); } }); //functions.js function initEditing (event,arrayUtils,Editor,domStyle,i18n,draw) { //allLayers -- It's a global variable; var featureLayerInfos = arrayUtils.map(allLayers, function (layer) { return { "featureLayer": layer }; }); var stackedAreaLegend = dijit.byId('sidepanelSpatialEditing'); if (stackedAreaLegend) { stackedAreaLegend.destroyRecursive(true); } var settings = { map: map, layerInfos: featureLayerInfos }; var params = { settings: settings }; var editorWidget = new Editor(params, 'sidepanelSpatialEditing'); editorWidget.startup(); //snapping defaults to Cmd key in Mac & Ctrl in PC. //specify "snapKey" option only if you want a different key combination for snapping map.enableSnapping(); } function displayPopupContent(feature,domStyle,menus,DeleteFeature,edithasClass){ var stackedAreaLegend = dijit.byId('sidepanelAllPourposeContent'); if (stackedAreaLegend) { stackedAreaLegend.destroyRecursive(true); } if(feature){ var content = feature.getContent(); $("#sidepanelAllPourposeContent").html(content); if(edithasClass==true){ $("#sidepanelAllPourposeHeadingSpan").html('Spatial Editing'); } if(edithasClass==false){ $("#sidepanelAllPourposeHeadingSpan").html(feature._layer.id); $("#sidepanelAllPourposeContent" ).accordion(); $("#sidepanelAllPourposeContent").accordion( "destroy" ); if(feature._layer.id!='Photos'){ var mapserviceid = $("#associatedForms").attr("mapServiceId"); var objectId = $("#associatedForms").attr("objectId"); var allLoadedService = JSON.parse(localStorage.getItem('loadedServicesstored')); var allForms ='<table class="table table-striped table-bordered"><tbody>'; for (var i = 0; i < allLoadedService.length; i++) { if(mapserviceid == allLoadedService.map_service_id){ if(allLoadedService.forms.length==0){ allForms += '<tr class="clickable desc"><td>No Forms Found.</td></tr>' ; }else{ for (var j = 0; j < allLoadedService.forms.length; j++) { allForms += '<tr class="clickable desc" ng-click="showCompleted("'+allLoadedService.forms .form_definition_id+'")" ><td>'+allLoadedService.forms .title+'</td></tr>'; } } allForms += '</tbody></table>'; break; } } $("#associatedForms").html(allForms); } $("#sidepanelAllPourposeContent" ).accordion({ collapsible: true, active: 2, heightStyle: "content" }); $("#associatedForms").mCustomScrollbar({ scrollButtons:{enable:true}, theme:"minimal-dark" }); $("#associatedFormResult").mCustomScrollbar({ scrollButtons:{enable:true}, theme:"minimal-dark" }); $("#gisAttributes").mCustomScrollbar({ scrollButtons:{enable:true}, theme:"minimal-dark" }); } if(edithasClass==true){ var layerId = feature._layer.id; new AttributeEditor({graphic:feature, layerId:layerId, exists:true}); } $(".sideplanelContent").on("click", function(e) { if(e.target.id == 'edit-btn' || e.target.id == 'edit-img') { e.stopPropagation(); var layerId = feature._layer.id; new AttributeEditor({graphic:feature, layerId:layerId, exists:true}); // menus.openAttributeEditor(); /*$(".contentWrapEdit").mCustomScrollbar({ scrollButtons:{enable:true}, theme:"minimal-dark" });*/ } else if(e.target.id == 'del-btn' || e.target.id == 'del-img') { e.stopPropagation(); DeleteFeature.DeleteFeature(feature._layer.id,feature); } else if (e.target.id === 'attachments-btn' || e.target.id == 'attachments-img') { Event.stop(e); openAttachmentsModal(); } else if(e.target.id == 'form-btn' || e.target.id == 'form-img') { Event.stop(e); openFormsModal(); } else if(e.target.id == 'cancel-button') { Event.stop(e); map.infoWindow.hide(); } }); if(edithasClass==false){ $( "#sidepanelAllPourposeContent" ).accordion( "refresh" ); } } } **************************************************************************************************************************************** Thanks, Niladri
... View more
11-29-2016
06:27 AM
|
0
|
2
|
720
|
POST
|
Hi Robert, Thanks for your reply. Yes you are right we are combining the Popup content in side panel sample with the editing widget sample. Is that causing the issue? Thanks, Niladri
... View more
11-28-2016
07:13 AM
|
0
|
4
|
720
|
POST
|
Hi All, I am having an issue with the spatial editing for point feature. For the spatial editing we have referred the sample the code given in the example. ArcGIS API for JavaScript Sandbox This code is working fine for point feature if we don't change the position and the style of the default info window which opens when we click on any feature in spatial editing environment. However if we change the style and position of default window to open in a side panel and in that case moving of point feature is not happening while moving of line and polygon feature is working in the side panel info window. Please refer the attached image with the name of "working.jpg" and "notworking.jpg" Any help concerning this issue will be highly appreciated. Thanks, Niladri Banerjee GIS Developer Stesalit Systems Ltd.
... View more
11-26-2016
11:22 PM
|
0
|
8
|
1350
|
POST
|
Can anyone please shed light on this topic? Please help me I am stuck in middle of a Project. Thanks, NIladri
... View more
03-11-2015
01:32 AM
|
0
|
1
|
388
|
POST
|
hi All, Having some issues with ESRI city engine. I have imported a line shape file with projection in UTM. While loading the following rule its not aligning properly which shows in the following screen shot. The rule file is like following: @StartRule attr height = .5 attr pole_height =5 attr cableHeight = pole_height attr connectionStart = "" @Location(388,28) PowerlineAligned --> case connectionStart == "" : i("powerline cable 1.obj") t(0,cableHeight,0) else : t(0,cableHeight,0) I want to show the texture of the "powerline cable 1.obj" as a pipe line according to the alignment of the shape file. However when I add the object model it shows some irregular texture like the image attached. Any help concerning this will be highly appreciated. Thanks, Niladri
... View more
03-04-2015
02:50 AM
|
0
|
2
|
2843
|
POST
|
Hi All, I am having an issue of highlighting individual graphics in a cluster. I have plotted some points on the map using flare cluster symbol. And corresponding records of those points are displaying in a grid. Now when I select any record on the grid it will pass some ID which will then check all the graphics in the point layer and if it finds any match it will highlight that point on the map. It is working fine where no cluster graphics are there. However, when the ID is matching with any cluster graphics on that case I am not able highlight that graphic. is it possible to highlight any individual graphic in a cluster? if it is not possible, is there any way to highlight / blinking the center graphics of a cluster? Any help concerning this will be highly appreciated!! Thank you for your time. Regards, Niladri Banerjee, Sr. Software Engineer PointCross Inc
... View more
10-03-2013
06:25 AM
|
0
|
0
|
395
|
Online Status |
Offline
|
Date Last Visited |
12-06-2020
03:09 AM
|