POST
|
Thanks for the suggestion. I already did that... nothing shows...
... View more
05-30-2013
11:50 AM
|
0
|
0
|
325
|
POST
|
I'd like to be able to suspend zooming and panning on-demand. In other words, have a toggle button or any other control that would enable/disable the zooming and panning. Is that possible? Are there any properties for this I can use? Examples?? Thanks!
... View more
05-29-2013
11:22 AM
|
0
|
3
|
916
|
POST
|
Brandon, thanks for your reply. I have checked multiple times the code and I have not found anything yet. What puzzles me is the fact that it is not consistent. It may happen sometimes; others it just uploads like a champ the very first time. The other thing I have noticed is that if I get the blank control and I click the reload button of the browser a couple of times, then it uploads. So, there is something specific that happens at some point (I guess under some conditions??) and it does not happen others. But no exception is ever thrown. Thanks again!
... View more
05-29-2013
11:07 AM
|
0
|
0
|
325
|
POST
|
I posted this a while back and still keep getting this. I don't do anything exception in the initialization process. This is how I upload the base layer:
ArcGISTiledMapServiceLayer bl = new ArcGISTiledMapServiceLayer();
bl.Url = baseLayer; //this variable is just a string with the URL of the base layer map
bl.InitializationFailed += new EventHandler<EventArgs>(layer_InitializationFailed);
bl.Initialized += (a, b) =>
{
this.map1.Layers.Insert(0, bl);
};
bl.Initialize();
Still we get a blank screen very often. The baseLayer variable you see there is being set to this URL: http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer Is there an initialization routine we are missing? I can see the layers in the legend; so that tells me they were added to the control. However I do not see any map (base layer) or any other layer for that matter. Thanks!
... View more
05-22-2013
06:18 AM
|
0
|
0
|
325
|
POST
|
There shouldn't be any difference based on the size of the map.however a smaller map needs to zoom out more to a different scale to fit the same extent. Could it be you have some max/min zoom limitations (either explicitly or caused by a cached layers levels), SnapToLevels etc enabled? Morten, I found this in my XAML map definition:
<i:Interaction.Behaviors>
<esri:MaintainExtentBehavior />
</i:Interaction.Behaviors>
But if I understand the documentation well, that works only when re-sizing the map.
... View more
05-03-2013
05:02 AM
|
0
|
0
|
522
|
POST
|
Morten thanks for your reply. I need to check those. I have no idea at this point.
... View more
05-01-2013
08:21 AM
|
0
|
0
|
522
|
POST
|
I tried this:
this.map1.ZoomTo(l.FullExtent);
And get the same result. there has to be a way to take into consideration the viewing area at the specific moment...
... View more
04-29-2013
12:42 PM
|
0
|
0
|
522
|
POST
|
A picture says more than 1K words. So, I am attaching some pics now :). Screen shot "reset_extent_maximized.JPG" shows the full extent when the window is Maximized. Screen shot "reset_extent_not_maximized.JPG" shows the same thing when the window containing the map is NOT maximized. I basically want my clients to see the same thing all the time like in the "maximized" window example. It is like a zoom setting?? thanks!
... View more
04-29-2013
12:19 PM
|
0
|
0
|
522
|
POST
|
I have a map with a specific layer that I want my users to be able to reset the extent to. So I basically added a little button that on the click event has this: GraphicsLayer l = (GraphicsLayer)this.map1.Layers["MY_LAYER_ID"]; this.map1.Extent = l.FullExtent; That works fine as long as the window is Maximized. If the window that holds the map is in any other size then it only shows whatever part of the viewing area is shown at that moment. What I'd like to happen is that the map resets to the extent the layer has but that the layer in question if shown entirely in the current viewing area. Is there an example of that somewhere? How can I accomplish this? Thanks!
... View more
04-29-2013
10:17 AM
|
0
|
7
|
2322
|
POST
|
Right on! That solves the problem. Thanks Dominique!
... View more
04-09-2013
04:56 AM
|
0
|
0
|
215
|
POST
|
Let me start by explaining my business issue. I have two Graphics layer on a map, one of them has the graphics I want to show, the other one has TextSymbol as symbols and shows as a label of the graphics in the first layer (see the attachment for clarification). So, now let's say the user turns off the graphics layer, then the "labels layer" will still be turned on, so that looks awkward. So basically I would like the "labels layer" to be turned off in the same event when the graphics are turned off. Ok, so here is the technical stuff. I have a Legend added to my map where the users can turn the layers on and off: <esri:Legend Name="legend1" Map="{Binding ElementName=map1}" LayerItemsMode="Tree" ShowOnlyVisibleLayers="False" FontSize="11" Refreshed="legend1_Refreshed"> <esri:Legend.MapLayerTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <CheckBox Content="{Binding Label}" IsChecked="{Binding IsEnabled, Mode=TwoWay}" IsEnabled="{Binding IsInScaleRange}"> </CheckBox> <Slider Maximum="1" Value="{Binding Layer.Opacity, Mode=TwoWay}" Width="50" /> </StackPanel> </DataTemplate> </esri:Legend.MapLayerTemplate> <esri:Legend.LayerTemplate> <DataTemplate> <CheckBox Content="{Binding Label}" IsChecked="{Binding IsEnabled, Mode=TwoWay}" IsEnabled="{Binding IsInScaleRange}" > </CheckBox> </DataTemplate> </esri:Legend.LayerTemplate> </esri:Legend> So, this is what I need help with. What I'd like to do is capture the event that turns the layers on and off. I guess that would be for the CheckBox?? Or can I capture it in the layer per se?? So, say that I extend the layer and interesect the event there?? Thanks!
... View more
04-05-2013
05:39 AM
|
0
|
2
|
635
|
POST
|
I was wondering if someone else has experienced this. I have an application where we use the Silverlight version of ESRI. Most of the time it works fine. However, there are times where we see a totally blank screen. Nothing shows up, no layers, no graphics, and even worse no errors, nothing. What could be causing this? Thanks!
... View more
04-02-2013
05:05 AM
|
0
|
6
|
705
|
POST
|
Never mind, I just realized that the TextSymbol is actually being added to a graphics object as the symbol.
... View more
03-27-2013
05:42 AM
|
0
|
0
|
192
|
POST
|
I have a GraphicsLayer where I add several TextSymbols. I'd like to be able to have a List of TextSymbols returned by my layer, so I extended the GraphicsLayer class and just added a simple function that retrieves the Graphics and cast them into TextSymbols. All good so far until I tried it. Here is the code: public List<TextSymbol> TextSymbolList(){ List<TextSymbol> l = new List<TextSymbol>(); foreach (Graphic g in this.Graphics) { l.Add((TextSymbol)g); //THIS DOES NOT WORK } return l; } So, my question is, how is it that I can add the TextSymbol object to the Graphics list but I cannot retrieve it or cast it back to TextSymbol? How can I accomplish this or something similar? Any suggestions? Thanks!
... View more
03-27-2013
05:38 AM
|
0
|
2
|
620
|
POST
|
I have a GraphicsLayer where I show some TextSymbol's. They are place in position and show correctly. The problem is that they are geographically close and the different texts for each position show up on the map like a mass of unreadable text until you zoom in and get close to them. So we thought that we may show the layer only after some position of the zoom. I have seen this effect in other layers but don't know how to create it. Any ideas? Thanks!
... View more
03-07-2013
05:56 AM
|
0
|
1
|
474
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|