My requirement is to implement Google map in the application. This should also put markers on possibly hundreds of places in displayed region on map. Also, there can be two types of addresses, and to distinguish them on the map I want to display markers
with different icons.
I have used GoogleMap controls 4.1 which in order to achieve this. But I found it is not working in case of marker count is more than 10. Also, I am unable to set different icon than the default one for any marker.
I tried to check in Google map's community, but its not helping much.
Any one has an idea what can be wrong here? Or if anyone know if there is any other option to implement Google maps in ASP.NET 2.0 application that also can fulfil my above requirements.
It was because I was passing Address to set markers, instead of latitude and longitude. You are right, queries are limited but only when an address is used latitude and longitude... otherwise, if you have latitude and longitude of various places, it can
load as many markers you want and for that the licensing is not needed.
Anyway, this has increased my work to fetch latitude and longitude of each address and to store them in my database, so that while putting markers I can just pass on lat and long.. But I am glad the problem is solved.
nirman.doshi
Participant
1521 Points
783 Posts
Best available Google map API/ Control for ASP.NET 2.0?
Jul 27, 2012 04:51 AM|LINK
My application is in ASP.NET 2.0.
My requirement is to implement Google map in the application. This should also put markers on possibly hundreds of places in displayed region on map. Also, there can be two types of addresses, and to distinguish them on the map I want to display markers with different icons.
I have used GoogleMap controls 4.1 which in order to achieve this. But I found it is not working in case of marker count is more than 10. Also, I am unable to set different icon than the default one for any marker.
I tried to check in Google map's community, but its not helping much.
Any one has an idea what can be wrong here? Or if anyone know if there is any other option to implement Google maps in ASP.NET 2.0 application that also can fulfil my above requirements.
Any help on this much appreciated.
Thanks
Nirman
Software Developer
Vadodara, India
mitja.GTI
Star
11157 Points
2094 Posts
Re: Best available Google map API/ Control for ASP.NET 2.0?
Jul 27, 2012 05:47 PM|LINK
Hi Nirman
Everything is well documented on google. You just didn't look for it hard enough. I'd suggest you to use the default Google Maps API.
Queries are limited by google. You need to purchase a "licence". More info here: Google Maps API licensing.
Here is a simple custom marker demo (view page source for code).
mitja.gti | www.mitjagti.com
nirman.doshi
Participant
1521 Points
783 Posts
Re: Best available Google map API/ Control for ASP.NET 2.0?
Jul 28, 2012 02:44 PM|LINK
Thanks for your response, and informative links
Got it!
I found the problem with my code.
It was because I was passing Address to set markers, instead of latitude and longitude. You are right, queries are limited but only when an address is used latitude and longitude... otherwise, if you have latitude and longitude of various places, it can load as many markers you want and for that the licensing is not needed.
Anyway, this has increased my work to fetch latitude and longitude of each address and to store them in my database, so that while putting markers I can just pass on lat and long.. But I am glad the problem is solved.
Software Developer
Vadodara, India
hans_v
All-Star
35998 Points
6551 Posts
Re: Best available Google map API/ Control for ASP.NET 2.0?
Jul 29, 2012 10:47 AM|LINK
You can also try this .NET Wrapper
http://googlemap.codeplex.com/