Skip to content

Instantly share code, notes, and snippets.

@leandro
Created March 5, 2012 02:44
Show Gist options
  • Select an option

  • Save leandro/1976151 to your computer and use it in GitHub Desktop.

Select an option

Save leandro/1976151 to your computer and use it in GitHub Desktop.
multiple JS variables declaration (google maps)
var gCoords = new google.maps.LatLng(-16.698395,-49.26394)
, gmapData = {
center: gCoords,
zoom: 16,
mapTypeId: google.maps.MapTypeId.ROADMAP,
scrollwheel: false
}
, gMap = new google.maps.Map($('#google-map-localizacao').get(0), gmapData)
, gMarker = new google.maps.Marker({
position: gCoords,
map: gMap,
title: "Hello World!"
})
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment