Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save stan/388283 to your computer and use it in GitHub Desktop.
Save stan/388283 to your computer and use it in GitHub Desktop.
// once the google maps is loaded, put a Raphael canvas on top of it
// be sure to apply margin:0 to the body in this case
var point = new GLatLng(46.065375, 5.448974);
var pixel = map.fromLatLngToContainerPixel(point);
var paper = Raphael(0, 0, 400, 300);
var circle = paper.circle(pixel.x, pixel.y, 10);
circle.attr("fill", "#f00");
circle.attr("stroke", "#fff");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment