I've already succeed to use Open Layers library in ASP.NET application but i don't succeed to integrate it in W PF Application and i don't found examples.
Is it possible? how can i load the map and interact? Is anyone have link or examples?
Best Regards.
It is possible via the WebBrowser Class: WebBrowser Class
Related
Is it possible to load Google Maps in wpf window? If yes how can i do this?
I'm using visual studio-2010 and DevExpress tool.
This code i found from DevExpress official site for openstreetmaps.
const string roadUrlTemplate = #"http://{subdomain}.tile.openstreetmap.org/{tileLevel}/{tileX}/{tileY}.png";
An easy way is to use the WebBrowser control.
In XAML add:
<WebBrowser x:Name="wbMaps" Source="https://www.google.com/maps"/>
If you are not limited to using Google Maps then take a look at the Bing Maps WPF control for a truly native WPF map solution:
http://msdn.microsoft.com/en-us/library/hh750210.aspx
If you need to use Google Maps you can of course use a web browser control and create an interlop to communicate between C# and JavaScript however if you want a native WPF solution then take a look at some open source solutions like the following:
http://greatmaps.codeplex.com/
https://github.com/ericnewton76/gmaps-api-net
Does anyone know the best way to go about integrating GeoExt 2.0 into Sencha Architect 3?
It seems like it is possible but there is not a very clear way to do it based on some of the documentation I have looked at.
A forum post here(GeoExt Inside Sencha Architect) on Sencha's forums mentions adding GeoExt as an external resource then instantianting classes inside Sencha architect from the resource. I followed the links in the post and it takes you Sencha's user guide for using resources.
Based on this information here I should be able to do the following.
Add GeoExt Map Panel as a resource
Place a panel in my view
Set the extend property on the panel I just placed to be GeoExtMapPanel.
However, I am not finding an extend property.
The other option I have looked into is possibly creating Architect Extension definitions for GeoExt components that I want to use. This option does seem more involved. There is a guide on creating a user extension here(Creating an Architect Extension).
If you want to use the extend property you'll need to create a Class not a Panel.
I'm trying to create a new UI for an app I developed for the Windows Store using the Windows Runtime API. This new client is going to be a WPF Desktop App. I'm trying to reuse as much code as I can but I'm facing several issues.
Fortunately there's a way to use WinRT in a WPF Desktop app (see this and this)
Now I'm blocked by the following issue:
The MediaCapture class has a method to start the preview of a device, after I've started the preview I can create a CaptureElement to display the preview.
CaptureElement is part of Windows.UI.Xaml.Controls and cannot be used in containers from System.Windows.Controls in which the WPF UI is built.
Am I going anywhere with this approach? what would you recommend? How can I display the preview of a device in the WPF app?
Thanks in advance
CaptureElement can't be used in desktop applications - the documentation says "[Windows Store apps only]". In general - the UI controls from WPF and WinRT/XAML can't be used outside of their respective domains (desktop/immersive UI). In a WPF app you need to use WPF controls - e.g. DirectShow for camera capture,
Have someone a idea how to implement the 'share button of Twitter' with Silverlight: i'm using the framework 4 of c#.
Basically, you'll have to use the Twitter API. My idea would be to use one of the twitter libraries for .NET found here.
I am planning to use Silverlight control for bing map. It will be used in a ASP.Net website.
Note: I am new to Silverlight and Bing map.
How the Silverlight bing map control will behave? Will the bing map service be called from the client browser or the web server?
Is there any architecture diagram related to this?
Please help.
Thanks
Lijo Cheeran Joseph
A good place to start is on the following link:
http://www.microsoft.com/maps/product/faq.aspx
I do not know about any architecture diagrams. With the Silverlight control (the preferred control at this point, over the old AJAX control), the map service is called from the client browser...it is called from within the Silverlight application that hosts the map control, which like all Silverlight applications, runs exclusively on the client.
You could make calls to the Bing web services server-side, then use that data in some way, but if you're going after an interactive map, you will want the Silverlight control.