|
POST
|
I can't reproduce any problems on the online nav sample with FF, Chrome, or IE8. But sometimes I have trouble reproducing errors that other folks encounter. What browser, OS, CPU, and internet connection bandwidth do you have?
... View more
02-21-2011
08:52 AM
|
0
|
0
|
939
|
|
POST
|
Weird problem. Are you ignoring any exceptions anywhere in your app? E.g. try
{
//code
}
catch
{
//empty catch block
} Also, it might be related to the way your map control extent and layer extents are set up. Couldn't say much more without seeing some code.
... View more
02-21-2011
08:38 AM
|
0
|
0
|
1603
|
|
POST
|
If by odd shape you mean the rounded corners, that is by definition what a buffer is (the buffer shape represents the set of all points a given distance out from the original shape, not the original shape scaled up). If you want the polygon to retain its shape, use a Mitred Offset instead: _geometryService.OffsetAsync(
new List<Graphic> { new Graphic { Geometry = geometry} },
new OffsetParameters
{
OffsetDistance = 500,
OffsetHow = GeometryOffset.Mitered,
OffsetUnit =LinearUnit.Foot,
Simplify = true
}
);
... View more
02-21-2011
08:02 AM
|
0
|
0
|
655
|
|
POST
|
Its easy enough to create a web application from a site. Just right-click on your solution, Add->New Project->Web->ASP.NET Empty Web Application. Then drag all the files from your website into the WebApp in solution explorer. Finally right click the new web app project, Silverlight Applications tab, Add button, choose the existing silverlight app in your solution. You're done. Depending on how you want to serve the Oracle data to silverlight, it might be easiest to just add a Domain Service to your web app (requires RIA Services toolkit). That seems to me to be easier than configuring a new WCF service (RIA uses WCF under the hood).
... View more
02-11-2011
06:58 AM
|
0
|
0
|
404
|
|
POST
|
Any of a number of things could cause the maptip to not show up. As a test, comment out all the bound controls from your maptip template. You should at least see a small border show up when you hover. Then you can start adding controls back in to see what the funky binding expression is that's causing problems. Also, in SL 4, there seems to be some discrepancies on how the binding to attributes can be referenced (Inline maptip template: use {Binding [attributename]}, Static resource template, use {Binding Attributes[attributename]}).
... View more
02-11-2011
06:32 AM
|
0
|
0
|
1931
|
|
POST
|
What is supposed to trigger the maptip? In that sample, layer's maptip is defined in XAML and adds a behind-the-scenes event handler for GraphicsLayer.MouseEnter at startup. If your problem is that the maptips aren't showing, there might be a problem with the template for the Maptip. Silverlight doesn't always do the best job of notifying you of problems with templates.
... View more
02-10-2011
08:54 AM
|
0
|
0
|
1931
|
|
POST
|
You might try removing the line <domain uri="*"/>, but I don't think that's your problem. The only reasons I can think of that Silverlight is not requesting the xml file is 1) you're requesting a resource which is not a well formed URI, and 2) the resource appears to be in the same domain as your application. I would guess that your problem is #1. Can you post the actual (or slightly adjusted) URI to your service, including the domain suffix?
... View more
02-10-2011
08:45 AM
|
0
|
0
|
846
|
|
POST
|
That event is triggered when the first layer is initialized, which sets the map's spatial reference.
... View more
02-09-2011
05:18 PM
|
0
|
0
|
1931
|
|
POST
|
Can you post the contents of your client access policy file?
... View more
02-09-2011
05:15 PM
|
0
|
0
|
846
|
|
POST
|
Your code looks otherwise. If you had it hardcoded, it would look like this: geocoder = new Geocoder("abc........xyz"); Your code shows you referencing an application resource.
... View more
02-09-2011
11:37 AM
|
0
|
0
|
725
|
|
POST
|
Do you have the Bing Maps Key stored as an application resource string, and are you referencing that key with a name that you have represented as the xxx's?
... View more
02-09-2011
09:28 AM
|
0
|
0
|
725
|
|
POST
|
First, I would validate that your image service can work in Silverlight under http. Also read this blog about cross-scheme access in case your Silverlight app is hosted under http (and your service https): http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2009/08/31/Using-services-across-schemes.aspx
... View more
02-08-2011
04:07 AM
|
0
|
0
|
749
|
|
POST
|
You could just download the toolkit source code at codeplex and modify the XAML in Visual Studio. You would have to be careful to remove references to the pan and rotate elements in the code file too. But I agree with Morten, you're probably going to want to get Blend if you plan on doing much more customization.
... View more
02-03-2011
09:12 AM
|
0
|
0
|
757
|
|
POST
|
Here's a simple Proxy handler that would go in your web project:
using System;
using System.Net;
using System.Web;
namespace MySilverlightProject.Web
{
public class SimpleHandler : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
var bytes = (new WebClient()).DownloadData(new Uri(context.Request["url"]));
context.Response.Cache.SetCacheability(HttpCacheability.NoCache);
context.Response.BufferOutput = false;
context.Response.BinaryWrite(bytes);
}
public bool IsReusable { get { return false; } }
}
}
Instead of pointing to http://www.openstreetmap.org/traces/rss, you would reference http://myserver/mypath/myproxy.ashx?url=www.openstreetmap.org/traces/rss instead.
... View more
02-03-2011
06:56 AM
|
0
|
0
|
1687
|
|
POST
|
Adding a clientaccesspolicy.xml file to your project does not mean anything. The file at http://www.openstreetmap.org/clientaccesspolicy.xml is what defines how Silverlight can access resources, and that file restricts client access to OSM api and oauth endpoints: <grant-to> <resource path="/api" include-subpaths="true"/> <resource path="/oauth" include-subpaths="true"/> </grant-to> Just setup a proxy handler in your web project. There are numerous examples of how to do this on the forums and interactive samples. (BTW the earthquake sample data comes from USGS, and the file http://earthquake.usgs.gov/crossdomain.xml is less restrictive.)
... View more
02-03-2011
06:08 AM
|
0
|
0
|
1687
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-16-2015 10:23 AM | |
| 2 | 09-25-2015 10:36 AM | |
| 1 | 06-29-2015 08:24 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|