We're using the Silverlight map in an MVC application but have only been able to get it to work by using an iframe within an MVC view. The iframe points to an aspx page that contains the Silverlight object and that is located in the application root directory. This works pretty well except for typical navigation and clipping problems related to iframes. Is there a way to use the Silverlight edition in an MVC view page?
The key problem we observed was that calls to GeoTile.axd were relative references and we were unable to re-route them to the application root. For example, a ShowMap page on the MapController is accessed by the following url:
The resulting calls to GeoTile.axd then have urls as follows:
localhost/myapp/map/GeoTile.axd?SERVICE=WMS....
The GeoTile urls break with 'page not found' errors. In order to work, the url needs to NOT have the /map component of the url (i.e., it needs to point to the application root). Presumably this is the case for any other axd resources, if any, needed by the map.
Is there way to specificy the root url for the GeoTile.axd service calls, or is there another approach to using the Silverlight edition in a MVC app?