Skip to content

Instantly share code, notes, and snippets.

@gopeter
gopeter / custom.google.maps.markers.js
Created February 27, 2017 20:19 — forked from filipbech/custom.google.maps.markers.js
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;