Can We add a marker to the particular position.
Opened this issue · 1 comments
rajatagarwal23 commented
Can We add a marker to the particular position.
rajatagarwal23 commented
Hi Concern,
Please help. Below is my code.
<script src='https://api.tiles.mapbox.com/mapbox.js/v2.3.0/mapbox.js'></script> <script src='https://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-hash/v0.2.1/leaflet-hash.js'></script> highwaysMap = L.mapbox.tileLayer('planemad.66359ac0'),
connectivityGraph = L.mapbox.tileLayer('planemad.5504651b'),
railwayMap = L.mapbox.tileLayer('planemad.e5dd1290');
var baseLayers = {
"Railway Map": railwayMap,
"Bhuvan Satellite": bhuvanSatellite,
// "NASA Satellite": truemarbleSatellite,
"OpenStreetMap India": indiaMap
};
var overlayMaps = {
"Highway": highwaysMap,
"Postal Codes": postalMap,
"Connectivity": connectivityGraph
};
// Create a map in the div #map
var map = L.map('map', {
layers: indiaMap
}, {
maxBounds: bounds,
})
.addControl(L.mapbox.geocoderControl('mapbox.places', {
autocomplete: true
}))
.setView([21.166, 72.9270],13);
L.hash(map);
//Add layer control
L.control.layers(baseLayers, overlayMaps, {
position: 'topleft'
}).addTo(map);