Skip to content

Instantly share code, notes, and snippets.

View Pilaba's full-sized avatar
🍉
Why Lie? Will use glems for gloobies

Baldemar Alej Pilaba

🍉
Why Lie? Will use glems for gloobies
View GitHub Profile
console.log("%cBALDEMARUCHO", "color: green; font-size: 50px; text-shadow: 2px 2px 0 red, 3px 3px 0 blue;");
@Pilaba
Pilaba / controlMap.js
Created November 5, 2019 02:22
Add new custom control on top of google map
<script>
var centerControlDiv = document.createElement('div')
var centerControl = new CenterControl(centerControlDiv, map)
centerControlDiv.index = 1
map.controls[google.maps.ControlPosition.TOP_RIGHT].push(centerControlDiv)
//Custom google map view
function CenterControl(controlDiv, map) {
// Set CSS for the control border.
var controlUI = document.createElement('div');