|
POST
|
Great, thanks for that info Jennifer! Here is what I did...
private void ScaleBar_Loaded(object sender, RoutedEventArgs e)
{
ScaleBar.ApplyTemplate();
ScaleBarValueTextBlock = ScaleBar.Template.FindName("ScaleBarValue", ScaleBar) as TextBlock;
}
private void Map_ExtentChanged(object sender, ESRI.ArcGIS.Client.ExtentEventArgs e)
{
if (ScaleBarValueTextBlock != null)
{
if (ScaleBar.DisplayUnit == ScaleBarUnit.Miles && ScaleBarValueTextBlock.Text[0] == '0')
ScaleBar.DisplayUnit = ScaleBarUnit.Feet;
else if (ScaleBar.DisplayUnit == ScaleBarUnit.Feet && Convert.ToDouble(ScaleBarValueTextBlock.Text.TrimEnd(" Feet".ToCharArray())) > 5279)
ScaleBar.DisplayUnit = ScaleBarUnit.Miles;
}
}
If anyone has any String to Int performance tips to replace "Convert.ToDouble(ScaleBarValueTextBlock.Text.TrimEnd(" Feet".ToCharArray()))" with, that would be great? I hate having to do that much string manipulation in an event like that. Also, if the API developers don't have an issue with it, maybe in a future version could make the actual double value property public and read-only to the users? Thanks a lot!
... View more
10-18-2010
10:30 AM
|
0
|
0
|
824
|
|
POST
|
Thanks Jennifer! But how do I access the ScaleBars current value (i.e. 3 Miles, 1 Mile, etc)?
... View more
10-17-2010
08:35 AM
|
0
|
0
|
824
|
|
POST
|
Is there a way to access the ScaleBars distance value? I could not find any properties or events that would give me access to it. What I am tring to do is change the DisplayUnit programatically. If the value is < 1 mile, then change the DisplayUnit to feet, and if it is > 5279 ft switch to miles. Thanks for any help!
... View more
10-15-2010
12:58 PM
|
0
|
7
|
2854
|
|
POST
|
The times when the map does work, fiddler shows the http image start downloading and then finish... The times when the map does NOT work, fiddler does not show anything (no activity at all in fiddler)... Also, another interesting observation: When there is only one of the services sub layers turned on, it seems to work every time, but if a few layers are turned on, that is when it is temperamental. Thanks SharpGIS!
... View more
10-15-2010
12:15 PM
|
0
|
0
|
357
|
|
POST
|
Thanks for the reply Dave! I still get the same temperamental behavior though :(. I am doing this: ((ArcGISDynamicMapServiceLayer)Service).VisibleLayers = VisibleLayerIDs.ToArray(); ((ArcGISDynamicMapServiceLayer)Service).Refresh();
... View more
10-15-2010
07:07 AM
|
0
|
0
|
357
|
|
POST
|
I have a TOC control that when a Services layer is turned on or off it updates the ArcGISDynamicMapServiceLayer VisibleLayers collection. About 60% of the time the map refreshes just fine and shows the new changes. But a lot of the time (way too often) it does not update... the maps progress bar always pops up (so it detects the change) but it will then hang at like 96%. I can do a quick little pan and then it will reload and the layer changes happen. I have also seen this behavior happen maybe about 5% of the time when just doing a pan or zoom on the map... where the progress bar stops at like 80 - 99% and doesn't go away until another pan or zoom occurs. Any ideas on why this happens? Also, is there a way to programmatically force the map to refresh (Map.UpdateLayout() doesn???t seem to)? Thanks a lot for any help!!!
... View more
10-14-2010
12:55 PM
|
0
|
4
|
780
|
|
POST
|
Thanks a lot for the info Eric! Our find tool has an option to search "all" data fields, so for now I have just tweaked that tool to skip over SHAPE.x fields. This is a fine solution for now. I would prefer to leave the services as MSD, just for the slight performance gain, but don't necessarily have too. We are running SDE 9.3 on Oracle 10g Thanks again for the help!
... View more
10-14-2010
08:47 AM
|
0
|
0
|
1258
|
|
POST
|
If SHAPE.LEN is in the list of Search Fields, I always get "No results found", regardless of what other field I might be searching. If I remove SHAPE.LEN then the Find works fine. Is this a bug? Or is this supposed to work this way? I hav not tested SHAPE.AREA yet, it might do the same... Thanks a lot!
... View more
10-13-2010
07:34 AM
|
0
|
9
|
4222
|
|
POST
|
AWESOME, it works with a MSD... I should have know this, hence the warning when serving them up if they are in different coord systems. This takes care of most my problem, but one more question... How can I do this with an Image Service in ArcGIS Server (we don't use the stand alone image server, just the AGS extension)? Thank you much!
... View more
10-12-2010
02:30 PM
|
0
|
0
|
491
|
|
POST
|
Ahh, ok, thank you much for that info... but it has to be serverd up as a MXD? MSD doesn't retain this info im guessing? Thanks again!
... View more
10-11-2010
07:49 PM
|
0
|
0
|
491
|
|
POST
|
So there is no way then to just specify the transformation used from NAD_27 to WGS_84? We would like to use ArcGIS Online maps (which as you said the map will have to be WGS_84 or they don't show up), but the NAD_27 data doesn't project nicely to this... we would like to use the NAD_1927_To_WGS_1984_79_CONUS transformation... Thanks Morten!
... View more
10-11-2010
02:50 PM
|
0
|
0
|
491
|
|
POST
|
Is there any way to set the transformation the Map uses? All our data is in either NAD83 or NAD27... and we use ESRIs services that are WGS84. The NAD83 data projects nicely to WGS84 with the default transformation, but NAD27 to WGS84 does not... so how can I change/specify the transformation being used with ArcGIS server and the WPF app? Thanks a lot!
... View more
10-06-2010
10:29 AM
|
0
|
6
|
926
|
|
POST
|
Well bummer... Doesn't seem to matter if it is a "Full Trust" app either. Guess I will have to find some other means of showing these coordinates to the user. I'll try to work out a fixed window and display the coordinates in it using something like: MyMap.ScreenToMap(screenPoint)... Well thanks a lot for looking into this, I REALLY appriciate it!!! Thank you!
... View more
10-04-2010
03:51 PM
|
0
|
0
|
626
|
|
POST
|
Jennifer, Thanks a lot for doing all that testing... I am running a .NET 4 WPF Web Application (XBAP) and I just tried it as a regular WPF application and it displays fine, but as a Web Application (XBAP) it has this black background. Hmmm, so what is the difference between those two... not sure what I could do to fix it... Attached a screen shot of the black background. Thanks a lot for the help!!!
... View more
10-04-2010
01:39 PM
|
0
|
0
|
626
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-24-2023 10:43 AM | |
| 1 | 10-02-2023 02:23 PM | |
| 1 | 11-16-2016 02:05 PM | |
| 1 | 07-05-2017 09:30 AM | |
| 15 | 11-19-2010 08:05 PM |
| Online Status |
Offline
|
| Date Last Visited |
05-01-2024
08:25 PM
|