問題描述
我希望創建一個可以交互的地圖.
Im looking to create a map that can be interactive.
我找到的最佳選擇是傳單,問題是我沒有找到任何解釋如何創建自己的地圖的資源.
The best option that I found is leaflet, the thing is I don't find any resource explaining how to create my own map.
我希望創建一個商場地圖,用戶可以在其中看到所有商店、噴泉......
Im looking to create a mall map where user can see all the stores, fountain ...
我怎樣才能做到這一點?
How could I achieve that ?
推薦答案
最好的起點是 Leaflet 示例頁面:
The best place to start would be the Leaflet examples page:
http://leafletjs.com/examples.html
這里是快速入門指南:http://leafletjs.com/examples/quick-start.html
更新要創建室內地圖,您可以使用 QGis 和 Mapbox Studio 等工具來構建地圖并生成地圖瓦片(用于 Web).然后,您可以將自定義地圖圖塊用作傳單中的圖塊層,以提供放大/縮小功能和標記.
Update To create an indoor map, you can use tools such as QGis and Mapbox Studio to build the map and generate the map tiles(used for web). Then you can use your custom map tiles as a tile layer in leaflet to provide zoom in/out functionality and markers.
這篇關于如何使用 LeafLet 創建商店地圖的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!