Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Simon steed 376 posts 688 karma points
    Dec 14, 2010 @ 22:00
    Simon steed
    0

    How does the map work?

    Hi Chris,

    Top build, very useful - however I cannot for the life of me work out how you are setting the coordinates for the google map - could you elaborate please?

    Cheers

    Si

  • Chris Koiak 700 posts 2626 karma points
    Dec 14, 2010 @ 22:44
    Chris Koiak
    0

    Hi Si,

    Thanks, glad you find it useful (I wish you had 70 karma and could vote for it ;-) )

    Have a look at Line 8 of /scripts/default.js

    var latlng = new google.maps.LatLng(55.86725, -4.257231);

    The easiest way to find the latitude and longitude of a point on GoogleMaps is to right click and choose 'What's Here'. The values should appear in the search box.

    Cheers

    Chris

  • Simon steed 376 posts 688 karma points
    Dec 14, 2010 @ 22:54
    Simon steed
    2

    Ahh haa - never looked at the script, cheers for that.

     

    Don't worry, once i've built up the Karma, i'll be voting - tried before but as you said, i'm a lowly figure :-)

  • Chris Koiak 700 posts 2626 karma points
    Dec 14, 2010 @ 23:07
    Chris Koiak
    0

    Super... here's a High Five to get you on your way!

  • Simon steed 376 posts 688 karma points
    Dec 14, 2010 @ 23:11
    Simon steed
    1

    Heh heh thanks, need a high 30 though :-) Map sorted now, cheers.

Please Sign in or register to post replies

Write your reply to:

Draft