+
Skip to content

youssef-of-web/leaflet-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeafletMap

You can start by execute npm start

http://localhost:3000

Details

You can use the leaflet with autocomplete in the src/LeafletGeocoder.js file

You can use the leaflet with routing in the src/LeafletRoutingMachine.js file

you can change the icon of marker by adding

let DefaultIcon = L.icon({ iconUrl: your iconPath, iconSize: [25, 41], iconAnchor: [10, 41], popupAnchor: [2, -40], });

L.Marker.prototype.options.icon = DefaultIcon;

Requirements

npm i --save leaflet leaflet-control-geocoder leaflet-routing-machine

import "leaflet-control-geocoder/dist/Control.Geocoder.css";

import "leaflet-control-geocoder/dist/Control.Geocoder.js";

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载