Forum  General Visual ...  How do I...?  BING Maps
Previous Previous
 
Next Next
New Post 5/31/2012 8:12 AM
  parcol
86 posts
No Ranking


BING Maps 
Modified By parcol  on 5/31/2012 11:13:43 AM)

 For a client we need to integrate Bing maps into our VisualWebGui application.

As far as I know Bing maps is html5 javascript based. There are some asp.net control initiatives but what I like to do is wrap the html jacascript version into a custom control.

I have been looking on how to do this but I am not sure of what is the best approach.

Has anyone done this before? What would be the approach for wrapping Bing maps?

Arco

 
New Post 6/1/2012 1:44 PM
  palli
14335 posts
1st Level Poster




Re: BING Maps 

 Hi Arco,

Quickly browsing through the BING Maps API, it will be quite a challenge to support everything, but doable of course. 

My first thoughts for an approach would be very similar to what was used for GoogleMap. You can find a 6.4 updated version of the original GoogleMap control (before it was included in our Professional assembly) here. I think the approach taken there should give you a good starting point.

If you do make some progress with this wrapping, we would really appreciate to receive a copy of the wrapped control and I'm sure the community would appreciate it. 

In any case, we will be here for you in case you hit any walls.

Hope this helps,

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 6/6/2012 5:26 AM
  parcol
86 posts
No Ranking


Re: BING Maps 
Modified By parcol  on 6/6/2012 8:40:13 AM)

 Hi Palli,

Have been looking at the Google Maps approach but get the idea it is a bit of a one way control (correct me if i am wrong). What I mean is that you can only show a map, set a location. No interaction back from the map. I tried catching Click and MouseClick events but these are not fired. I see an iFrame is used to show the map. No communication back through the iFrame.

I want my client to be able to set pushpins on a Bing map and draw polygons. The resulting coördinates I want to store in a database.

Any ideas on how to achieve that?

Arco

 
New Post 6/6/2012 7:24 AM
  JamesC
850 posts
www.redcastle.co.uk
1st Level Poster




Re: BING Maps 

Hi there

have you tried the Bing Maps Silverlight controls? I have used them but in a non-vwg project so had no cause to wrap the control

The silverlight control does raise events though....

http://www.microsoft.com/maps/isdk/silverlight/#MapControlInteractiveSdk.Tutorials.TutorialEvents

Cheers james

 
New Post 6/9/2012 5:49 AM
  palli
14335 posts
1st Level Poster




Re: BING Maps 

 Hi Arco,

The GoogleMap implementation here (see the version 6.3 control converted to 6.4 download) is communicating both ways, although it doesn't report many events back to the Visual WebGui application, it does so for the ones it registers on the GoogleMap client side. See for instance the GoogleMap_ZoomChanged() JavaScript method which is invoked by the map control it self and registered within GoogleMap_Initialize. When raised, it will raise a Visual WebGui event which you can process within the FireEvent override of the server-side control and do whatever you need.

As far as I could see in my quick browsing of the BING map JavaScript API, you can indeed register event handlers client-side on the map and as long as the BING map supports raising client-side events for the operations you want to detect, you should be able to get that information to the server-side.

The challenge of wrapping the BING map control, as I see it, is not that you can't make this work, much rather that the API is HUGE and wrapping it all will require a lot of work. 

Hope this explains,

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  General Visual ...  How do I...?  BING Maps
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS