POST
|
I defined a Map like this in XAML:
<esri:Map Background="White" Name="map1" WrapAround="True" Margin="9,9,9,9" Panel.ZIndex="0" MouseRightButtonDown="map1_MouseRightButtonDown" MouseLeftButtonDown="map1_MouseLeftButtonDown" PreviewMouseDown="map1_PreviewMouseDown">
<!--Height="779"-->
<i:Interaction.Behaviors>
<esri:MaintainExtentBehavior />
</i:Interaction.Behaviors>
</esri:Map>
I upload world topography map later on in the code with this code:
...
ArcGISTiledMapServiceLayer bl = new ArcGISTiledMapServiceLayer();
bl.ID = "WorldMap";
bl.Url = "http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer";
...
Basically there is no max height or max width set. So, I was expecting the map would fill any screen resolution. In development the max resolution we have is 1920 x 1080. However, we have clients in our company (the application is for internal use only) that have these huge monitors with higher resolutions. They end up seeing the map in the middle of the control and two white strips (one on top one in the bottom) between the end of the world map and the edge of the control. Any ideas how to prevent that? I want the map to fill the control, is there a setting on the server side for that? Thanks!
... View more
08-21-2013
10:27 AM
|
0
|
1
|
543
|
POST
|
well, I think I just found one... if the map is not focusable then it does not zoom in/out ... anything else? Although that by itself defeats the purpose of the map if the user cannot get pretty close to an specific area.
... View more
07-24-2013
12:54 PM
|
0
|
0
|
115
|
POST
|
We have been having an issue with an untimely focus on the map in our application. It took a lot of chasing to figure out where it was coming from. We had noticed it was happening as soon as the mouse moved over the map and we do not have any event for that implemented. We finally found it after implementing the GotFocus event of the map and stopping the execution there. In the call Stack window, we noticed that it was coming from another event in the Draw object. In the call stack window it shows as ESRI.ArcGIS.Client.Draw.Map_MouseMove... which we do not have access to... thank you very much... 🙂 We do have a draw object implemented on our map and we want it to be active on start up so our clients can use it to mark some graphics on the map. So, if the draw object is active, then the Map_MouseMove kicks in... and I guess you guys (ESRI) set the focus there somehow?? We also have a GUI where the client can activate or deactivate the draw object if they want to pan the map. I tested by deactivating the draw object from our GUI and sure enough the map does not get focus on mouse over again. Now, to maintain our requirement of having the draw object active on map initialization and not having focus on the map every time the mouse moves over it, what I did was to set the map Focusable property to false. It seems to work fine. But, my question (I guess to the ESRI folks), what else could be affected by setting the focusable property to false? What would be restricted? I am just trying to avoid another wild chase later on trying to figure out why something is not working as expected. Thanks!
... View more
07-23-2013
06:50 AM
|
0
|
1
|
484
|
POST
|
I have an application where clients add layers to the map by selecting from a series of services we have available in our company. The user can save the state of the application and open the file again. When the user re-opens the file the code loops through the existing layers and and upload them using this code:
ArcGISDynamicMapServiceLayer dLayer = new ArcGISDynamicMapServiceLayer();
dLayer.Url = layer.URL; //we only save the metadata of the layer for other engineering reasons so we instantiate the object, upload the URL and initialize the layer.
dLayer.InitializationFailed += new EventHandler<EventArgs>(layer_InitializationFailed);
dLayer.Initialized += (a, b) =>
{
mapControl1.map1.Layers.Insert(1, dLayer);
};
dLayer.Initialize();
So that adds the layers always in the same position in which the user added it... right? ... well not quite. The problem is that the initialization procedure, although fast, does not end necessarily at the same time; so whichever layer is done first is the one that goes in first to the map changing the position the user added the layers in. So, the question is, how can we handle that? I guess at that point we are working with different threads and we need to make them wait? Is there a way around this? Thanks!
... View more
07-02-2013
10:01 AM
|
0
|
1
|
454
|
POST
|
Is there a way to reposition the Tip window? That may help too. It seems that the Tip displays under the HTML; but if the FrameworkElement is reposition to the left of the border then it should work just fine.
... View more
06-26-2013
08:00 AM
|
0
|
0
|
111
|
POST
|
I have an application where we run the Silverlight control. We add a few Graphics to a Graphics layer. We add tips to our graphics and they normally display well until they are close to the border. At this point we can only see a part of the tool tip. Please, look at the attached screen shot for clarity. We have a WPF, desktop version of this same application; it has the tips as well and this never happens. Is there a way to bring those tips to the front so that does not happen? Thanks!
... View more
06-25-2013
01:02 PM
|
0
|
1
|
341
|
POST
|
I've had this occur even if one minor code has an issue, that isn't necessarily reported as an error. Have you checked through all your other code? You are right, it is an error. I was able to make the screen show up blank. What I still have not been able to figure out is why it is doing that. Thanks!
... View more
06-14-2013
11:30 AM
|
0
|
0
|
322
|
POST
|
The solution for this, in case someone is interested, has been to increase the extent by a small percentage of its Maximum and Minimums. That opens the zoom enough for it to show at the right place. It still cuts some markers from view; but in general it handles real well. Hope that helps someone else.
... View more
06-14-2013
11:28 AM
|
0
|
0
|
517
|
POST
|
The answer to this is to use the Silverlight toolkit (Silverlight 4) and that implements a Context menu with MenuItem, Menu Separators and all the stuff needed. If there is a different way to do it; please, feel free to point it out. Thanks!
... View more
06-14-2013
10:37 AM
|
0
|
0
|
123
|
POST
|
I was wondering if there is a Context menu in the Silverlight map control we can use? I have seen one in the Silverlight Toolkit but nothing for the ESRI control. Silverlight itself does not provide one out-of-the-box. Thanks!
... View more
06-13-2013
01:14 PM
|
0
|
1
|
434
|
POST
|
I tried creating a Polygon out of the polyline created with the freehand draw. Still the extent is exactly the same as before. Here is the code:
if (args.DrawMode == DrawMode.Freehand) {
ESRI.ArcGIS.Client.Geometry.Polyline polyline = (ESRI.ArcGIS.Client.Geometry.Polyline)args.Geometry;
ESRI.ArcGIS.Client.Geometry.Polygon polygon = new ESRI.ArcGIS.Client.Geometry.Polygon();
polygon.Rings = polyline.Paths;
ESRI.ArcGIS.Client.Geometry.Envelope envelope= polygon.Extent;
}
So, (please, correct me if I am wrong and there is a different way I don't know) that tells me that for this to work the way I intend it there has to be a different Envelope object that accepts polygons?? Thanks!
... View more
06-12-2013
07:17 AM
|
0
|
0
|
271
|
POST
|
I am using a Draw object to allow my clients to mark some graphics on a map. I set up the draw mode to work as DrawMode.Freehand. The idea is to allow the client to draw a freehand shape on tight spaces (clutter graphics) so they can select what they are interested in. Of course the result is an asymmetric polygon. Now, I have noticed that when I process the DrawComplete event I may not end up exactly with the graphics I had "lasso." It looks more like if the geometry was interpreted as a rectangle. Please, take a look at the pictures I am attaching and let me know if I need to do any other setting to process my event correctly. In the pictures you can see the difference between what I selected (with the freehand drawing) and what ended up selected (in green). If there is an example of this somewhere, please, let me know. Thanks!
... View more
06-11-2013
12:48 PM
|
0
|
3
|
2727
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|