|
POST
|
I can get this to work with my map service...but tryign to use ESRIs and it wont work..... I can't figure out why it could be not working with ESRI services. I tested this code and it works: <esri:Map x:Name="MyMap" >
<esri:ArcGISTiledMapServiceLayer ID="StreetMap" Visible="True"
Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" Opacity="1.0"/>
<esri:ArcGISTiledMapServiceLayer ID="Topo" Visible="True"
Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer" Opacity="0.0"/>
<esri:ArcGISTiledMapServiceLayer ID="Aerials" Visible="True" Opacity="0.0"
Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer" />
</esri:Map>
<Slider Height="23" HorizontalAlignment="Left" Margin="10,150,0,0" VerticalAlignment="Top" Width="100" Maximum="2" Minimum="0" ValueChanged="Slider_ValueChanged"/>
.........
private void Slider_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)
{
var value = e.NewValue;
if (value <= 1)
{
MyMap.Layers["StreetMap"].Opacity = 1.0 - value;
MyMap.Layers["Topo"].Opacity = value;
MyMap.Layers["Aerials"].Opacity = 0.0;
}
else
{
MyMap.Layers["StreetMap"].Opacity = 0.0;
MyMap.Layers["Topo"].Opacity = 2 - value;
MyMap.Layers["Aerials"].Opacity = value - 1;
}
}
... View more
03-08-2011
12:31 AM
|
0
|
0
|
578
|
|
POST
|
What is the spatialreference of your map? As you are giving a query envelope in geographical coordinates, your code can only work with a geographical map spatial reference. When the query is completed, how many features are returned?
... View more
03-08-2011
12:10 AM
|
0
|
0
|
954
|
|
POST
|
Is there a way how I can get the actual path/ring clicked rather than the whole feature? There is nothing out of the box. I guess this might be developed by using the Paths and Rings properties of the polyline/polygon but likely not that easy (this would need some geometry calculations).
... View more
03-08-2011
12:00 AM
|
0
|
0
|
919
|
|
POST
|
1. Why do I need this? Path=Layers[BaseLayerImage].Opacity, mean its specifying a specific layer? Since it's now done by code, you don't need to do it in xaml as well.
2. ONE LAST question....how would i do this with 3 layers?
It's depending on the logic you need (how one slider can manage 3 layers). We can imagine to extent the maximum value to 2.0 and manage a smooth transition between layer1 and layer2 when the slider is between 0 and 1, and a smooth transition between layers 2 and 3 when the slider is between 1 and 2. There is no specific difficulties to do that by code.
... View more
03-07-2011
06:23 AM
|
0
|
0
|
2447
|
|
POST
|
The MapTip property has been removed from the WinPhone version only. This property is not used and should have been there in the first versions.
... View more
03-07-2011
06:06 AM
|
0
|
0
|
505
|
|
POST
|
Or are you saying add to the same map... Yes, you don't need a second map to do that. THen in VB I change the opacity based on the slider value? Yes, easier by code (on event ValueChanged), else you would need a converter returning 1-value.
... View more
03-07-2011
05:57 AM
|
0
|
0
|
2447
|
|
POST
|
Should work the way you did it. Just remove the handler in all other cases:
MyMap.MouseClick -= QueryPoint_MouseClick;
switch (e.Index)
{
case 0: // Identify
MyMap.MouseClick += QueryPoint_MouseClick;
break; What kind of issue do you get?
... View more
03-07-2011
05:52 AM
|
0
|
0
|
583
|
|
POST
|
There is no out-of-the-box support for the shapefiles in the ArcGIS SL API. Nevertheless there is a sample of shapefile reader here : http://esrislcontrib.codeplex.com/ (but the shapefiles can't be modified, so the sample would have to be extended) Another option is you to publish your data with ArcGIS server.
... View more
03-07-2011
05:27 AM
|
0
|
0
|
663
|
|
POST
|
Do I create another <esri:map and define the two layers that will be effected with the slider? You can just add your 2 layers to the map and when the slider value changed (from 0.0 to 1.0), initialize the opacity of your first layer with the slider value and the opacity of your second layer with 1-value.
... View more
03-07-2011
05:20 AM
|
0
|
0
|
2447
|
|
POST
|
Did you look at this sample : http://www.arcgis.com/home/item.html?id=1e432da7e74f4402bd43a5863167022d ?
... View more
03-01-2011
09:33 AM
|
0
|
0
|
1189
|
|
POST
|
Did you look at this sample : http://www.arcgis.com/home/item.html?id=1e432da7e74f4402bd43a5863167022d ?
... View more
03-01-2011
09:32 AM
|
0
|
0
|
758
|
|
POST
|
I guess it's depending on the way the geocoder stores the addresses. With the example you gave : http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Address_EU/GeocodeServer/findAddressCandidates?Address=&City=Turin&Postcode=&Country=Italy&outFields=&outSR=&f=html it's not really working by giving 'Turin' in English. You don't get the expected 'Torino' city in the first choices. It's better by giving 'Torino' http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Address_EU/GeocodeServer/findAddressCandidates?Address=&City=Torino&Postcode=&Country=Italy&outSR=&f=html It looks like with this geocoder, the country is in English and then the City and StreetNames in locale. You can verify that by looking at the output fields : http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Address_EU/GeocodeServer/findAddressCandidates?Address=Sebastopoli+123&City=Torino&Postcode=&Country=Italy&outFields=*&outSR=&f=html That being said, I am not sure I helped you. I guess you would need either a geocoder storing the country in locale language or a way to translate the country names from locale to english. Sorry no clue for these points:confused:
... View more
03-01-2011
09:24 AM
|
0
|
0
|
1296
|
|
POST
|
I am trying to create a custom symbol for polygon where the border of the polygon will be similar to the animated line symbol in this example Looks working just by replacing LineSymbol by FillSymbol: <esri:Graphic.Symbol>
<esri:FillSymbol>
<esri:FillSymbol.ControlTemplate>
<ControlTemplate>
<Grid>
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal">
<Storyboard RepeatBehavior="Forever">
<DoubleAnimation BeginTime="0:0:0" Storyboard.TargetName="Element"
Storyboard.TargetProperty="StrokeDashOffset"
To="1000" Duration="0:3:0" />
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<!--For polyline and polygon template, a Path
element with the name "Element" is required-->
<Path x:Name="Element" StrokeDashArray="2,1" StrokeDashOffset="0"
Stroke="Green" StrokeThickness="5" />
</Grid>
</ControlTemplate>
</esri:FillSymbol.ControlTemplate>
</esri:FillSymbol>
</esri:Graphic.Symbol>
... View more
03-01-2011
08:38 AM
|
0
|
0
|
609
|
|
POST
|
I don't think that arcgisonline supports localized tiled services. But with Bing maps, you can change the labels by using the Culture property of the TileLayer. For example: <bing:TileLayer ID="BingLayer" LayerStyle="Road" Visible="True" ServerType="Production" Culture="fr-FR"
Token="{StaticResource BingKeyString}" />
gives labels in french. Concerning the geocoding, you have to use the appropriate geocoder which is managing the addresses for the region. For example, this geodocer gives results for french addresses: http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Address_EU/GeocodeServer/findAddressCandidates?Address=18+Avenue+des+Champs+Elys%C3%A9es&City=Paris&Postcode=&Country=France&outFields=&outSR=&f=html
... View more
03-01-2011
08:19 AM
|
0
|
0
|
1296
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-12-2025 03:01 AM | |
| 1 | 10-14-2025 09:24 AM | |
| 1 | 06-13-2013 09:22 AM | |
| 1 | 04-29-2022 02:21 AM | |
| 1 | 04-29-2022 02:28 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-30-2025
08:06 AM
|