Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Got a template – Could not customize embedded Google Maps

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #173658
    Streicher
    Participant

    Hi :)

    I downloaded this template Live View Here and customized it to my needs.

    My problem is about the “Contact” Page and the hexagon containing the Map of Manhattans Central Park.

    Now i have been googling for hours to find out how to customize the “templatemo_map” class, i could not change the map coordinates because i did not find any, in none of the .css or .html files included.

    I then investigated the code with Firebug and found some coordinates and even a google-maps link, but i cannot find it anywhere within the files.

    I’m in desperate need of help :) i didn’t even pee for hours.

    Thank you in advance!

    #173659
    Paulie_D
    Member

    Google maps has it’s own API and the markers are probably to be found in the JS files.

    However, without a live link to the actual site it’s hard to diagnose.

    #173661
    clokey2k
    Participant

    Check in templateemo_custom.js for something that looks like this:

    function initialize() {
      var mapOptions = {
        zoom: 12,
        center: new google.maps.LatLng(40.7823234,-73.9654161)
      };
      var map = new google.maps.Map(document.getElementById('templatemo_map'),  mapOptions);
    }
    

    Change the LatLng() to suit you.

    Read more: https://developers.google.com/maps/documentation/javascript/tutorial

    #173668
    Streicher
    Participant

    Thank you guys :D found it.
    It’s kinda awkward :o i looked for it for hours

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.