You must Sign In to post a response.
  • Category: JavaScript

    How to count markers does it appeared in google map

    Hi Friends,


    I m creating one web application for google map.its like


    select country:


    select state:


    select district:



    country ,state & districts are cascading drop down,depends upon the district pin code saved lat,long in database and its fecth from that point out the exact place.(these much i had done)


    now i wanna to show total count of markers when it was appeared on that map?


    How to do that ?
    using Java script?


    Thanks
  • #750347
    Hello Rocky,

    Google map API v3 provides faclity to set markers from lat,long or address of a location.
    You should search in google regarding how to set marker on google map from latitude and longitude using javascript.
    There are thousands of resources available regarding that, you should take a look.
    You can mark on google map using ajax call.
    You can get all locations from dropdown accorsing to cascading dropdown and than use for loop in javascript and you can set markers on google map
    You should start with
    https://developers.google.com/maps/documentation/javascript/

    You can count is well after appearing on google map using count of returned data or from database also
    I hope you got my point.

    Regards,
    Nirav Prabtani (Senior Web Developer)
    Email : niravjprabtani@gmail.com
    blog : niravprabtani.blogspot.in


  • Sign In to post your comments