Skip to content

Instantly share code, notes, and snippets.

View filipbech's full-sized avatar

Filip Bech-Larsen filipbech

View GitHub Profile
@filipbech
filipbech / custom.google.maps.markers.js
Last active December 19, 2017 13:11
Custom markers (div-element) on google maps
Usage:
var myLatLng = new google.maps.LatLng(point.lat, point.lng);
var myMarker = new CustomMarker(myLatLng,map);
Implementation (mostly from googles example):
function CustomMarker(latlng, map) {
this.latlng_ = latlng;