Skip to content

Instantly share code, notes, and snippets.

@rmurphey
Created September 17, 2012 01:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmurphey/3735072 to your computer and use it in GitHub Desktop.
Save rmurphey/3735072 to your computer and use it in GitHub Desktop.
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