Google Maps in .NET Problem

Posted by H(at)Ni on Geeks with Blogs See other posts from Geeks with Blogs or by H(at)Ni
Published on Wed, 09 Nov 2011 16:46:24 GMT Indexed on 2011/11/11 17:55 UTC
Read the original article Hit count: 392

Filed under:

Hello,

I've been struggling with Google maps till I found that someone implemented a wrapper so that you can use Google Map as an ASP.Net user control which is a great effort indeed. You can download it from this link.

However, after using it for a while, I've found out that it is storing the Google map object only once in the session and getting it from there whenever needed which was a problem for me that when you update the map in some page, you'll find it updated on another page.

So, I've digged deep in the code and updated it so that it stores the map object with a unique identifier that you set it as a property in the user control object like that:

this.googleMapCtrl.ControlID = Guid.NewGuid().ToString();

You can download the updated control files from here.

Cheers,

© Geeks with Blogs or respective owner