我们如何在我们的网站上嵌入谷歌地图并添加我们自己的位置? [关闭]

I not only wish to add map to my site but also add local locations on my own to tke map like the site one here.

Google describes everything you need here:

https://developers.google.com/maps/

Look at the Google Maps Javascript API for various ways to add your own content to the embedded map. Google calls those custom locations 'markers' so, look for the page that describes those.

https://developers.google.com/maps/documentation/javascript/

To add your own custom markers (with custom icons and such), follow this guide.

https://developers.google.com/maps/documentation/javascript/custom-markers

There's a lot of sites that will give you a MAP credentials but Google is the famous one you just need to read their documentations on how to integrate it.

Leaflet supports multiples maps apis

http://leafletjs.com/ (download js)

Html

<div id="map"></div>

Js

var map = L.map('map').setView([51.505, -0.09], 13);

L.tileLayer('http://www.google.cn/maps/vt?lyrs=s&x={x}&y={y}&z={z}', {
    attribution: 'Google'
}).addTo(map);