Google Maps is a powerful mapping service that provides real-time navigation, location data, and interactive maps for web and mobile applications. To integrate Google Maps into your project, include the Google Maps API and use the JavaScript API to render custom maps, markers, and routes.
Install the Google Maps JavaScript API in your project by including the following script tag in your HTML file:
npm install gmaps --save
Add the prism js file link.
<script src="http://maps.google.com/maps/api/js"></script>
Below the example how to use the package and make it working ApexTree on any page.
HTML:
<div class="card-body"> <div class="w-100 min-h-320px" id="basic_gmap"></div> </div>
Javascript:
var map = new GMaps({ el: '#basic_gmap', lat: -12.043333, lng: -77.028333 });