ngmap
Version:
The Simplest AngularJS Google Maps V3 Directive
16 lines (14 loc) • 483 B
HTML
<html ng-app="ngMap">
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<script src="script-tags-for-development.js"></script>
</head>
<body>
<div style="width:100%; height:400px" id="street-view">
<ng-map street-view="StreetViewPanorama(document.querySelector('#street-view'), {position:new google.maps.LatLng(40.688738,-74.043871)})">
<marker position="40.688738,-74.043871"></marker>
</ng-map>
</div>
</body>
</html>