Use Google maps in Asp.net C#
Download this with example with codeThis is very simple to use Google maps to your application
To use Google map you must have an Google account
go to HTTP://code.google.com/apis/maps/signup.html
login and create key for your website.
Please use the example attached with this post.
After generating key replace this key in web.config.
For any queries please let me know.
Comments
Can you tell me how do it possible
I want to add multiple markers at one area based on the Count(Am getting From DB).
Is it possible to do this
This is possible to put all the pointer at one place. But not be able to view pointers, as they will be overlapped with each other.
Thanks,
Narender Singh
please provide me sample code.Based on the DB.
I write the code like this
var myArray = ['Hitech City', 'Banjarahills','Banjarahills'];
addplacesinmap(myArray);
function addplacesinmap(myArray)
{
alert("method");
for (var i in myArray)
{
geocoder = new GClientGeocoder();
geocoder.getLatLng(myArray[i], function(point) {
if (!point) {
alert(myArray[i] + " not found");
}
else {
var marker = new GMarker(point,markerOptions);
map.addOverlay(marker);
}
});
}
It is working fine, but not Multiple markers
Thanks in Advance.
Initial user will enter Address or zip code and also enter 100 i.e. "100 miles" and click on submit button thne I will read the zip code from the sql server table and copmapre the entered addres/zip code and sqlserver zip code using google map api for near by 100 miles. If any record found thne add it into pulldown.
Please let me know is this possible
Regards
Disha
As per Narender you need to work out on Google API and JS
Try Google Play Ground to check implementations.
http://code.google.com/apis/ajax/playground/#map_simple
Narender Singh