POST
|
Refer the following sample: https://developers.arcgis.com/javascript/latest/sample-code/get-started-graphics/live/index.html Check the above sample.Keep panning to the right. The graphics will not show after map wrapped around. Is their a workaround to this issue?
... View more
07-14-2016
10:32 AM
|
0
|
1
|
1835
|
POST
|
Hi Hasheen, We cannot publish a feature service or any kind of ArcGIS Server service using any of the runtime SDK's on Portal/Online/Server. However, the Runtime allows us to edit the already published feature services either in online or in offline mode. For the same we have a bunch of samples and documentation illustrating the same. So your web app can connect to a feature service and can edit the service based on the data provided by your application through the classes and the helper methods provided by the runtime SDK. Regards, Nikhil
... View more
06-30-2016
04:46 PM
|
1
|
0
|
542
|
POST
|
Hi All, I have simple runtime for .net application using a scene view. I try to load a kml file in that scene view and it does not work but as soon as I change the scene view to map view i.e. 2D it works fine. KML file supports 3D i.e. scene view as written in the documentation provided by ESRI for runtime sdk for .net 10.2.6. The KML file is present in my machine and the app uses the drag and drop event to locate the KML file. Here is the link: https://developers.arcgis.com/net/desktop/guide/add-layers-to-your-scene.htm Here is the sample code: private async void MyMapView_Drop(object sender, DragEventArgs e) { if (e.Data.GetDataPresent(DataFormats.FileDrop)) { string[] files = (string[])e.Data.GetData(DataFormats.FileDrop); KmlLayer kmlLayer = new KmlLayer(new Uri(files[0])); await kmlLayer.InitializeAsync(); //Add the kml layer //MyMapView.Map.Layers.Add(kmlLayer); MyMapView.Scene.Layers.Add(kmlLayer); //Zoom to the kml layer if available if (kmlLayer.RootFeature.Viewpoint != null) await MyMapView.SetViewAsync(kmlLayer.RootFeature.Viewpoint); await MyMapView.LayersLoadedAsync(); } } private void ResetMapButton_Click(object sender, RoutedEventArgs e) { // MyMapView.Map.Layers.Clear(); //MyMapView.Map.Layers.Add(new ArcGISTiledMapServiceLayer(new Uri("http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"))); MyMapView.Scene.Layers.Clear(); MyMapView.Scene.Layers.Add(new ArcGISTiledMapServiceLayer(new Uri("http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"))); } I am attaching the app and the kml file. Kindly suggest. Regards NIKHIL
... View more
11-12-2015
08:55 AM
|
0
|
0
|
3763
|
POST
|
Hi Guys, Just to inform all that I got rid of this error for a feature layer from a map service(mapserver/0) simply by checking if pagination is supported or not for all the sources inside a for loop. Here is the code snippet: search.on("load", function () { var sources = search.sources; sources.push({ featureLayer: layer, enableLabel: false, searchFields: ["STATE_NAME"], displayField: "STATE_NAME", exactMatch: false, outFields: ["*"], infoTemplate: new InfoTemplate("Ecological Footprint", "<a href= ${URL} target=_blank ;'>Additional Info</a></br></br>OBJECTID : ${OBJECTID }</br>") }); for(i=0;i<sources.length;i++) { var supported; if (sources.featureLayer) { // supports pagination if (sources.featureLayer.advancedQueryCapabilities && sources.featureLayer.advancedQueryCapabilities.supportsPagination) { supported = true; } } if (!supported) { sources.maxResults = "food"; } } search.set("sources", sources); }); search.startup(); I am attaching a working sample application along with this as well. Hope that helps..... Regards, Nikhil. !
... View more
06-19-2015
02:30 PM
|
1
|
0
|
351
|
POST
|
Hi Guys, Just to inform all that I got rid of this error for a feature layer from a map service(mapserver/0) simply by checking if pagination is supported or not for all the sources inside a for loop. Here is the code snippet: search.on("load", function () { var sources = search.sources; sources.push({ featureLayer: layer, enableLabel: false, searchFields: ["STATE_NAME"], displayField: "STATE_NAME", exactMatch: false, outFields: ["*"], infoTemplate: new InfoTemplate("Ecological Footprint", "<a href= ${URL} target=_blank ;'>Additional Info</a></br></br>OBJECTID : ${OBJECTID }</br>") }); for(i=0;i<sources.length;i++) { var supported; if (sources.featureLayer) { // supports pagination if (sources.featureLayer.advancedQueryCapabilities && sources.featureLayer.advancedQueryCapabilities.supportsPagination) { supported = true; } } if (!supported) { sources.maxResults = "food"; } } search.set("sources", sources); }); search.startup(); I am attaching a working sample application along with this as well. Hope that helps..... Regards, Nikhil. !
... View more
06-19-2015
02:29 PM
|
0
|
0
|
351
|
POST
|
Hi Bhavin, I completely agree with Thejus here because the problem you are facing is mainly because the simple marker symbol size chosen by you is very high i.e. 24 pixels as compared to the size the of the feature which is comparatively very smaller. The only feasible workaround in this case would be to use the myFeatureExtent.expand() method and set its value accordingly as per your data and requirements. Regards, Nikhil
... View more
05-27-2015
02:23 PM
|
0
|
0
|
800
|
POST
|
Hi, May I know which .js file to change i.e what is the name of the .js file in which I am supposed to make these changes in the code? Thanks, Nikhil
... View more
04-16-2015
12:01 PM
|
0
|
0
|
436
|
POST
|
Hi Kelly, I tried to integrate the sample in my web app builder project and was able switch the web maps successfully but this leaded to two more problems. The sample uses Map.destroy(); method which destroys the map instance and w hen I do that it creates two problems: 1. All the widgets which are a part of map container disappear. 2. The legend and layer list widget are not being updated but show the content for the previously loaded web map instead for the new web map. Can their be any other approach instead of using Map.destroy(); method as this method creates problems in web app builder application because the other widgets behave as per the previously loaded web map not the newly loaded web map and also the widgets which are part of the map container disappear. Thanks, Nikhil
... View more
04-16-2015
08:53 AM
|
0
|
1
|
1324
|
POST
|
Hi Kelly, Thanks for valuable inputs. I will try implementing the same with my web app builder app and will let you know about the progress. Thanks, Nikhil
... View more
04-15-2015
10:11 AM
|
0
|
0
|
1324
|
POST
|
Hi All, I have a web app builder application where I have created a widget to switch web maps in the application. The widget has buttons in it and when I click on the buttons a particular web map is needed to be loaded. Everything is working fine as per needs but the main concern is that the newly loaded web map is ordering itself below the existing web map as a res ult of which the the newly loaded web map cannot be seen. Whenever I try to change the web map using my custom widget it gets added successfully but gets added at the bottom instead of being added at the top due to which one cant see the newly added web map. What I am really looking for is that when I click on my custom widget the currently shown web map should be hidden and a new web map should be loaded. Any helps or suggestions would be highly appreciated. Regards, Nikhil
... View more
04-15-2015
09:07 AM
|
0
|
4
|
7186
|
POST
|
Hi Paul, I tried hosting the sample and was able to reproduce your issue. What I can observe after debugging your code and analyzing network traffic is that the code calls the apply edits function of feature layer but in the network response of the browser or fiddler I don't see any apply edits operation going on even with the latest version of API. I will test it further. Regards, Nikhil
... View more
03-10-2015
09:04 AM
|
0
|
0
|
232
|
Title | Kudos | Posted |
---|---|---|
1 | 06-30-2016 04:46 PM | |
1 | 06-19-2015 02:30 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:22 AM
|