|
POST
|
I think you hit the same issue that I was struggling. Make sure that you have set referer={I use app name here} in the request.
... View more
09-05-2013
09:11 PM
|
0
|
0
|
619
|
|
POST
|
I think it should be the same Token. I try to have time today to test this out. How do you query the root level? I suppose that is a custom REST call?
... View more
09-04-2013
09:50 PM
|
0
|
0
|
1173
|
|
POST
|
I had not found that on my own. Thank you for sharing it. BTW, I would mark your response as an answer but this forum does not appear to have that functionality. Np, glad to help. It seems that there are same issue in many sub-forums.
... View more
09-04-2013
09:49 PM
|
0
|
0
|
1508
|
|
POST
|
Can you tell me how do you trim the url and how do you access to the home level of the service? I haven't tested similar case but it should work if you keep the token defined in every request. If you access to layers (webmap) via Document, remember to set Token property. If you are accessing to layer via Layer (ie. dynamic), make sure that Token gets set. If you are accessing via custom http call using ArcGISWebClient it doesn't automatically activate IdentityManger so it should be activated before using it. If you are accessing to layer via custom http call, remember to keep ?token=<token> defined. But if you tell how you access to the home level of the service, maybe I can give better pointers.
... View more
09-03-2013
10:25 PM
|
0
|
0
|
1173
|
|
POST
|
Check this http://www.arcgis.com/home/item.html?id=1d3beac52f454f78aa1a8bcadaac692a
... View more
09-03-2013
10:00 PM
|
0
|
0
|
1508
|
|
POST
|
Hi, Does REST api (Portal and Services) support GZIP? I tried to find information about this, but can't find.
... View more
08-31-2013
11:28 PM
|
0
|
1
|
3298
|
|
POST
|
Hi, I have tried to find some information how long job's are stored in ArcGIS Online. If I remember correctly ArcGIS Server default arcgisJob configuration 360 minutes. Ie. If i use Vehicle Routing problem service with customer names in orders, how long those are stored in ArcGIS Online
... View more
08-29-2013
11:32 PM
|
0
|
0
|
1835
|
|
POST
|
See ESRI.ArcGIS.Client.Portal assembly and namespace: http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client.Portal~ESRI.ArcGIS.Client.Portal_namespace.html
... View more
08-28-2013
04:48 AM
|
0
|
0
|
699
|
|
POST
|
So you have an FeatureService and you want to add that to map? You can add those as a FeatureLayers to map like this:
<esri:Map x:Name="MyMap" Extent="-15000000,2000000,-7000000,8000000" WrapAround="True" Background="#FFE3E3E3">
<esri:ArcGISTiledMapServiceLayer ID="StreetMapLayer"
Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
<esri:FeatureLayer ID="MyFeatureLayer"
Url="http://services.arcgis.com/1be8I8dpkSL373og/ArcGIS/rest/services/EmissionsInFinland2011_fromExcel/FeatureServer/0"/>
</esri:Map>
... View more
08-28-2013
01:31 AM
|
0
|
0
|
873
|
|
POST
|
Hi, Could you define your question in more detail, I think didn't understand it.
... View more
08-27-2013
11:53 PM
|
0
|
0
|
873
|
|
POST
|
Did you remove BorderPath definition from Template? The control is expecting it. <Path x:Name="BorderPath" StrokeLineJoin="Round" Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding StrokeThickness}" /> One hack that you can do here is to set BorderPath's Opacity to 0 to get it away from UI and then define correct margin in InfoWindows ContentTemplate. Something like this: <Style TargetType="esri:InfoWindow"> <Setter Property="Background" Value="White" /> <Setter Property="BorderBrush" Value="Black" /> <Setter Property="HorizontalAlignment" Value="Left" /> <Setter Property="VerticalAlignment" Value="Top" /> <Setter Property="Padding" Value="0" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="esri:InfoWindow"> <Grid x:Name="Root" RenderTransformOrigin="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=RenderTransformOrigin}"> <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="CommonStates"> <VisualState x:Name="Show"> <Storyboard> <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" Storyboard.TargetName="Root"> <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="1"> <EasingDoubleKeyFrame.EasingFunction> <BackEase EasingMode="EaseOut" Amplitude=".5"/> </EasingDoubleKeyFrame.EasingFunction> </EasingDoubleKeyFrame> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" Storyboard.TargetName="Root"> <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="1"> <EasingDoubleKeyFrame.EasingFunction> <BackEase EasingMode="EaseOut" Amplitude=".5"/> </EasingDoubleKeyFrame.EasingFunction> </EasingDoubleKeyFrame> </DoubleAnimationUsingKeyFrames> </Storyboard> </VisualState> <VisualState x:Name="Hide"> <Storyboard> <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" Storyboard.TargetName="Root"> <EasingDoubleKeyFrame KeyTime="0:0:0.25" Value="0"> <EasingDoubleKeyFrame.EasingFunction> <CircleEase EasingMode="EaseIn" /> </EasingDoubleKeyFrame.EasingFunction> </EasingDoubleKeyFrame> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" Storyboard.TargetName="Root"> <EasingDoubleKeyFrame KeyTime="0:0:0.25" Value="0"> <EasingDoubleKeyFrame.EasingFunction> <CircleEase EasingMode="EaseIn" /> </EasingDoubleKeyFrame.EasingFunction> </EasingDoubleKeyFrame> </DoubleAnimationUsingKeyFrames> </Storyboard> </VisualState> </VisualStateGroup> </VisualStateManager.VisualStateGroups> <Grid.RenderTransform> <ScaleTransform ScaleX="0" ScaleY="0" /> </Grid.RenderTransform> <Path x:Name="BorderPath" StrokeLineJoin="Round" Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding StrokeThickness}" Opacity="0" /> <ContentPresenter ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Margin="{TemplateBinding Margin}" /> </Grid> </ControlTemplate> </Setter.Value> </Setter> </Style> Then you can use ContentTemplate like this: <DataTemplate x:Key="MyFeatureLayerInfoWindowTemplate"> <Grid Background="Blue" Width="100" Height="20" Margin="0,0,0,-10"> <TextBlock Text="{Binding Attributes[Number]}" Foreground="White" FontSize="12" HorizontalAlignment="Center" VerticalAlignment="Center" /> </Grid> </DataTemplate> Notice Margin that lowers control by 10. This is default size of "anchor" path (BorderPath) that was hidden from UI. In this case I set to -10 to start from graphics point to up, but if you set that -20 (middle of point) then it will crash. -19 works fine thou. Usage of InfoWindow: <esri:InfoWindow x:Name="MyInfoWindow" Padding="0" CornerRadius="0" Map="{Binding ElementName=_map}" ContentTemplate="{StaticResource MyFeatureLayerInfoWindowTemplate}" /> Notice CornerRadious value that is set to 0. This is used internally to calculate position of InfoWindow. This example should look about like this: [ATTACH=CONFIG]27011[/ATTACH] I haven't tested this solution in production. Honestly I think that the neatest option would be writing your own control to handle this use case but you can do that with InfoWindow. In this solution just style DataTemplate as you like but play around with Positions to see how Margins affect each. Hope this helped. Here is a code how I set graphic to InfoWindow in this test. private void OpenOnMouseClick(object sender, Map.MouseEventArgs e) { var layer = _map.Layers["Graphics"] as GraphicsLayer; var graphics = layer.FindGraphicsInHostCoordinates(e.ScreenPoint); if (graphics.Count() == 1) { var graphic = graphics.ToList()[0]; MyInfoWindow.Anchor = graphic.Geometry as MapPoint; MyInfoWindow.IsOpen = true; MyInfoWindow.Content = graphic; } }
... View more
08-27-2013
02:35 AM
|
0
|
0
|
1451
|
|
POST
|
On touch devices I have been using InfoWindows instead MapTips since they are simpler to work with when interaction is tap based.
... View more
08-26-2013
09:24 PM
|
0
|
0
|
1451
|
|
POST
|
Check Server Object Extensions (SOE) first if you can get what you want with that. "Server object extensions (SOEs) allow you to extend the base functionality of ArcGIS for Server. Most SOEs do this by using ArcObjects code to work with GIS data and maps. ArcObjects are the core components on which ArcGIS is built and allow you the most flexibility in writing GIS functions." http://resources.arcgis.com/en/help/main/10.1/index.html#//0154000004s5000000 If not, then can you describe your case/target in more detail?
... View more
08-25-2013
09:43 PM
|
0
|
0
|
549
|
|
POST
|
Thank you for all the references and links. My pleasure. Remember to hit question answered when you think that you got things rolling.
... View more
08-23-2013
05:38 AM
|
0
|
0
|
2713
|
|
POST
|
Unfortunately Esri doesn't provide global country service through ArcGIS Online. There are several services in ArcGIS Online (like http://www.arcgis.com/home/item.html?id=7062c16d43c84d93b09d884403339615) with country geometries but if those are reliable, that is hard to say. When you have bought ArcMap, you should have DVD that several data sets including contains country boundaries. I'm not sure about the licensing on that data but you might be able to publish it in your ArcGIS Server or in ArcGIS Online to get the information that you need.
... View more
08-23-2013
05:35 AM
|
0
|
0
|
610
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-12-2014 03:52 AM | |
| 1 | 08-27-2015 03:47 AM | |
| 1 | 12-08-2014 09:58 AM | |
| 1 | 05-05-2015 10:19 AM | |
| 1 | 07-30-2015 08:43 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|