Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vishal-raj-1/Awesome-JavaScript-Projects
/ createMap
Function
createMap
assets/js/deviceInfo.js:8–13 ·
view source on GitHub ↗
({ lat, lng })
Source
from the content-addressed store, hash-verified
6
* @
return
{Object}
7
*/
8
const
createMap = ({ lat, lng }) => {
9
return
new
google.maps.Map(document.getElementById(
'map'
), {
10
center: { lat, lng },
11
zoom: 15
12
});
13
};
14
15
/**
16
* Create google maps Marker instance.
Callers
1
init
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected