Skip to content

Marker Failed to load resource: net::ERR_FILE_NOT_FOUND #2

Description

@tejastank

We getting issue with marker

Screenshot 2021-02-04 at 3 31 23 PM

// Initialize leaflet.js
var L = require('leaflet');

// Initialize the map
var map = L.map('map', {
scrollWheelZoom: false
});

// Set the position and zoom level of the map
map.setView([47.70, 13.35], 7);

// Initialize the base layer
var osm_mapnik = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 19,
attribution: '© OSM Mapnik OpenStreetMap'
}).addTo(map);

L.marker([100.00,100.00]).addTo(map);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions