Results 1 to 3 of 3

Thread: Help Adding AutoComplete Search to Maps API, also how to add KML layer

  1. #1
    Join Date
    Jul 2012

    Help Adding AutoComplete Search to Maps API, also how to add KML layer

    I need assistance adding a Google Maps AutoComplete Search Bar, in front of the map itself at the top of the screen. ive done quite a bit of googling, but everything ive tried hasnt worked at all. id also like some guidance on how to add a permanent KML file so the maps will alsways show it...

    Here is the current code for the basic maps and a few things changed to suit my needs.

    Im unsure of what code to add and where to add it to get these things working...

    <!DOCTYPE html>
    <title>Geographical Radio Frequency Map</title>
    <meta name="viewport"
    content="width=device-width, initial-scale=1.0, user-scalable=no">
    <meta charset="utf-8">
    html, body, #map_canvas {
    margin: 0;
    padding: 0;
    height: 100%;
    <script src="(URL Blocked)=false"></script>
    var map;
    function initialize() {
    var mapOptions = {
    zoom: 5,
    center: new google.maps.LatLng(-25, 133),
    mapTypeId: google.maps.MapTypeId.ROADMAP
    map = new google.maps.Map(document.getElementById('map_canva s'),

    google.maps.event.addDomListener(window, 'load', initialize);
    <div id="map_canvas"></div>

    Any help is muchly appreciated.


  2. #2
    Join Date
    Nov 2010
    you can see how to add a kml file here

    what do you expect your autocomplete to do? an autocomplete is simple to make, but it has to be restricted to give relevant suggestions

  3. #3
    Join Date
    Jul 2012
    it needs to be linked to google places api, as itll search for a town and show on the map..

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center