Skip to main content

Posts

Showing posts from February, 2018

Fun with Google Maps api and Marker clusters :)

Hello Everyone, has been a long time since i wrote my last blog :(. So i am back with some helpful tips that might help someone.So lets quickly jump to different topics to customise google maps and how to use it in the way we want.Let start - Customise Google Places Autocomplete, so that it can only provide place nearby or relevant instead of global suggestions.Its simple, just use strictBounds     var options ={         ///all options in English language: 'en-US',         ///IMP -> LIFE SAVER :)         strictBounds: true,         //limit only to searching of places in INDIA ONLY         componentRestrictions: { country: "IN" }     } And then pass the options, along with the input field to the Autocomplete api. var input = document.getElementById('find_locations'); var autocomplete = new google.maps.places.Autocomplete(input, options);       2. Moreover, what if you want to check if the location selected from the auto