POST
|
View | API Reference | ArcGIS API for JavaScript 4.6 There is a statement that says "When using an Esri basemap, the default spatial reference is Web Mercator Auxiliary Sphere." This makes me think that it can be changed? I would like to set to 4326. I can set a custom basemap using a layer with that spatial reference but I want that layer on top. I have also tried setting the center and extent of the MapView with the spacial reference but I do not get what I would expect.
... View more
12-15-2017
10:22 AM
|
0
|
2
|
3914
|
POST
|
I know this is an old post but I have the same question Attached is xaml and cs (Silverlight SDK 3.2 / VS 2013) 1. click the button 2. click on a blue feature Notice either no information is returned or only the main workspace information is returned not the dynamic layer
... View more
05-30-2014
04:40 AM
|
0
|
0
|
280
|
POST
|
I was not thinking that the coordinate system that I was using would lay an evenly spaced grid but it does so I was able you use the following solution: List<ESRI.ArcGIS.Client.Geometry.Polyline> polylineList = new List<ESRI.ArcGIS.Client.Geometry.Polyline>(); for (int lat = -90; lat <= 90; lat += 10) { ESRI.ArcGIS.Client.Geometry.PointCollection pointCollection = new ESRI.ArcGIS.Client.Geometry.PointCollection(); pointCollection.Add(new MapPoint(-180, lat)); pointCollection.Add(new MapPoint(180, lat)); ESRI.ArcGIS.Client.Geometry.Polyline polyline = new ESRI.ArcGIS.Client.Geometry.Polyline(); polyline.Paths.Add(pointCollection); polylineList.Add(polyline); } for (int lon = -180; lon <= 180; lon += 10) { ESRI.ArcGIS.Client.Geometry.PointCollection pointCollection = new ESRI.ArcGIS.Client.Geometry.PointCollection(); pointCollection.Add(new MapPoint(lon, -90)); pointCollection.Add(new MapPoint(lon, 90)); ESRI.ArcGIS.Client.Geometry.Polyline polyline = new ESRI.ArcGIS.Client.Geometry.Polyline(); polyline.Paths.Add(pointCollection); polylineList.Add(polyline); } GraphicsLayer graphicsLayer = Map.Layers["GridLines"] as GraphicsLayer; foreach (ESRI.ArcGIS.Client.Geometry.Polyline polyline in polylineList) { Graphic graphic = new Graphic() { Symbol = LayoutRoot.Resources["DefaultLineSymbol"] as Symbol, Geometry = polyline }; graphicsLayer.Graphics.Add(graphic); }
... View more
03-25-2011
10:05 AM
|
0
|
0
|
216
|
POST
|
In case other are looking for an easy way to create a grid this link did help: http://mappingcenter.esri.com/index.cfm?fa=ask.answers&q=223 But I would still like to create/modify a grid on the fly with a web app.
... View more
03-25-2011
09:32 AM
|
0
|
0
|
216
|
POST
|
Is there a grids feature that I can get access to either in xaml or c#? I could do this with features but I would like to dynamically change the spacing without having to generate/swap features. [ATTACH]5457[/ATTACH]
... View more
03-18-2011
10:04 AM
|
0
|
2
|
704
|
POST
|
Thanks to Laurence from ESRI support for help so far! I am still in search of code hooks on the image service to turn on the alpha channel set it to band 4 and set the stretch type to none? [ATTACH]4679[/ATTACH] Good - I took the raw data and through code generated an image. Better - Through a script take out the alpha channel. Best - The original smoothed image. [ATTACH]4681[/ATTACH] [ATTACH]4680[/ATTACH]
... View more
02-09-2011
03:39 AM
|
0
|
0
|
244
|
POST
|
Thanks that worked ... attached is the code that blend helped generate <esri:TimeSlider x:Name="MyTimeSlider" Loaded="MyTimeSlider_Loaded" TimeMode="TimeInstant" Height="20" MinimumValue="1997/1/1" MaximumValue="1998/6/30" Value="1997/1/1" Style="{StaticResource TimeSliderStyle1}" /> [ATTACH]4238[/ATTACH]
... View more
01-12-2011
04:25 AM
|
0
|
0
|
180
|
POST
|
I have a lot of time steps in my timeslider. I do not like the way it is displayed. Is there a way to turn off just the tick marks? <esri:TimeSlider x:Name="MyTimeSlider" Loaded="MyTimeSlider_Loaded" TimeMode="TimeInstant" Height="20" MinimumValue="1997/1/1" MaximumValue="1998/6/30" Value="1997/1/1" /> List<DateTime> DateTimeMonths = new List<DateTime>(); DateTime dtStart = new DateTime(1997, 1, 1, 0, 0, 0, DateTimeKind.Utc); myDate.DisplayDate = dtStart; myDate.Text = dtStart.ToString("M/d/yyyy"); DateTime dtStep = dtStart; DateTime dtEnd = new DateTime(1998, 6, 30, 18, 0, 0, DateTimeKind.Utc); while (dtStep <= dtEnd) { DateTimeMonths.Add(dtStep); dtStep = dtStep.AddHours(6); } MyTimeSlider.Intervals = DateTimeMonths; [ATTACH]4177[/ATTACH]
... View more
01-07-2011
04:12 AM
|
0
|
2
|
1006
|
POST
|
I found this thread: http://forums.esri.com/Thread.asp?c=158&f=2455&t=281577 Gave an example of a service that saved out an image using ImageTools (http://imagetools.codeplex.com). http://acequia.ccrfcd.org/fvadvanced/fvadvanced.aspx Since I would prefer not to rely on third party tools I am thinking about using the ExportToMap for each layer then combining on the back end with another process using imagemagic or something similar.
... View more
01-04-2011
03:23 AM
|
0
|
0
|
298
|
POST
|
I am trying to set the opacity of the sub layers within a ArcGISDynamicMapServiceLayer. I am unable to get an object handle to the the sub layers to set that property. [ATTACH]4070[/ATTACH] [ATTACH]4071[/ATTACH] ArcGIS API for Silverlight/WPF version 2.1 / server 10 / vs2k10 c#
... View more
12-30-2010
06:45 AM
|
0
|
1
|
1228
|
POST
|
This is sort of what I am looking to do: http://resources.arcgis.com/gallery/file/net-web-adf/details?entryID=5EC9123A-1422-2418-A090-7B52916462E6 Since I only want a png/bmp/gif/ect I was hoping for a simpler method
... View more
12-27-2010
11:46 AM
|
0
|
0
|
298
|
POST
|
Thanks for the reply! Do you know of another way (esri control) that I can automate an export (snap shot) of what is displayed on the webmap? I would like to avoid meshing the images together on the back end in order to create the same image.
... View more
12-27-2010
09:15 AM
|
0
|
0
|
298
|
POST
|
Is there a silverlight webcontrol that can record the screen? I have created a silmilar app the sample ... http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#TimeImageService Attached is a screen snap to the functionality in arcmap that I would like to have access to via silverlight
... View more
12-22-2010
09:43 AM
|
0
|
0
|
440
|
POST
|
I have a time slider and a dynamic map layer with time enabled. I am trying to export a still image ... the only method I found is to call the web service sending the parameters. http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/export.html Problem is I can not seem to figure out how to convert/get the timeinstant value from the time slider.
... View more
12-22-2010
09:35 AM
|
0
|
4
|
1914
|
POST
|
For anyone the cares here is the working solution: using System; using System.Collections; using System.Text; using ESRI.ArcGIS.Geoprocessor; using ESRI.ArcGIS.esriSystem; using ESRI.ArcGIS.SampleTools; namespace EsriTest { class EsriTest { static void Main(string[] args) { ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.Engine); Geoprocessor GP = new Geoprocessor(); CreateFeaturesFromTextFile a = new CreateFeaturesFromTextFile(); a.Input_Text_File = @"C:\in.txt"; a.Output_Feature_Class = @"dataOut.shp"; a.Output_Feature_Class_Spatial_Reference = @"C:\Program Files\ArcGIS\Coordinate Systems\Geographic Coordinate Systems\World\wgs 1984.prj"; a.Input_Decimal_Separator = "."; RunTool(GP, a, null); } private static void RunTool(Geoprocessor geoprocessor, IGPProcess process, ITrackCancel TC) { // Set the overwrite output option to true geoprocessor.OverwriteOutput = true; // Execute the tool try { geoprocessor.Execute(process, null); ReturnMessages(geoprocessor); } catch (Exception err) { Console.WriteLine(err.Message); ReturnMessages(geoprocessor); } } // Function for returning the tool messages. private static void ReturnMessages(Geoprocessor gp) { if (gp.MessageCount > 0) { for (int Count = 0; Count <= gp.MessageCount - 1; Count++) { Console.WriteLine(gp.GetMessage(Count)); } } } } }
... View more
08-05-2010
11:11 AM
|
0
|
0
|
286
|
Online Status |
Offline
|
Date Last Visited |
10-25-2023
11:11 PM
|