Created
September 17, 2012 01:10
-
-
Save rmurphey/3735072 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function selectedLocation() { | |
var selected = document.getElementById("countyLocation").value; | |
if (selected == "Ireland") { | |
var Ireland = new google.maps.LatLng(53.527248, -8.327637); | |
map.setCenter(Ireland); | |
map.setZoom(6); | |
} | |
if (selected == "Clare") { | |
var Clare = new google.maps.LatLng(52.988337, -9.102173); | |
map.setCenter(Clare); | |
map.setZoom(8); | |
} | |
if (selected == "Dublin") { | |
var Dublin = new google.maps.LatLng(53.399707, -6.262207); | |
map.setCenter(Dublin); | |
map.setZoom(9); | |
} | |
show(selected); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment