Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
{ | |
"supercars": [ | |
{ | |
"brand": "Ferrari", | |
"model": "LaFerrari", | |
"year": 2021, | |
"top_speed_mph": 217, | |
"acceleration_sec": 2.4, | |
"engine": "V12 Hybrid", | |
"horsepower": 950, |
"use client"; | |
import { | |
Box, | |
Button, | |
Link, | |
Modal, | |
ModalBody, | |
ModalCloseButton, | |
ModalContent, | |
ModalFooter, |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
let mapMarker = null; | |
let map; | |
map = new google.maps.Map(document.getElementById("map"), { | |
center: { lat: 28.3949, lng: 84.1240 }, // :nepal: | |
zoom: 6, | |
}); | |
map.addListener('click',function (e){ | |
let marker = new google.maps.Marker({ |
map.addListener('click', function(e) { | |
let lat = e.latLng.lat(); | |
let lng = e.latLng.lng(); | |
}); | |
//use the lat and lng as your needs. |
var marker = new google.maps.Marker({ | |
position: { lat: -34.397, lng: 150.644 }, | |
title:"Custom Marker Image", | |
icon: "new-image.png" | |
}); | |
marker.setMap(map); | |
//you just have to put the location of image file in 'icon' property of object in Marker's constructor |
var marker1 = new google.maps.Marker({ | |
position:{ lat: -34.397, lng: 150.644 }, | |
title:"Marker 1" | |
}); | |
marker1.setMap(map); | |
var marker2 = new google.maps.Marker({ | |
position: { lat: -33.397, lng: 151.644 }, |
marker.setMap(map); | |
//map is the instance of google.maps.map |
var marker = new google.maps.Marker({ | |
position: { lat: -34.397, lng: 150.644 }, | |
title:"Location Place or Anything that you want to tooltip while hovering" | |
}); | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Simple Map Embed</title> | |
<script src="https://polyfill.io/v3/polyfill.min.js?features=default"></script> | |
<script | |
src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap&libraries=&v=weekly" | |
defer | |
></script> | |
<link rel="stylesheet" type="text/css" href="./style.css" /> |