Questions tagged [Leaflet] (106)

1
answer

How to get the name/ID of the current map layer in Leaflet?

How to get the name/ID of the current layer in Leaflet? Tried it before, but ID dynamic: map.on('baselayerchange', function(e){ alert(e.layer._leaflet_id); }); The task is to identify and save the layer in a cookie.
dasia_Nicolas75 asked April 19th 20 at 11:59
0
answer

How to make dynamic content display leaflet popup transmitted to a template in Django view?

All kind time of day! The question is as follows: There is a leaflet map, which is a marker with a pop-up. By clicking on a marker in the pop-up displays content that is passed to the template from the Django view. The content represents the fields of the model, which are periodically updated. You need to make the user cli...
Krista_Wiegand90 asked April 18th 20 at 12:47
1
answer

Is it possible to expand to full screen open street maps with Leaflet?

Is it possible to add a maximize button to full screen maps with standard tools? Thank you.
Coty asked April 16th 20 at 11:09
1
answer

As in the vue-leaflet to disable in and out by scrolling the mouse?

Good day, The documentation of the chips is not found, so looked on the forums: Found the solution scrollWheelZoom: <l-map :zoom="zoom" :center="computedCenter" :minZoom="12" :options="{scrollWheelZoom: false} > In this embodiment, the map doesn't react to scrolling that almost solves the problem. The task is to...
Dessie_Baumbach41 asked April 7th 20 at 16:24
2
answers

Offset for the initial coordinates?

How to make a countdown of the length and width came from the center of the map, not from the top left corner ? var map = L. map('mapElement', { crs: L. CRS.Simple, minZoom: 0, maxZoom: 0, continuousWorld: false, }); map.setView([-128, 128], 0); L. tileLayer('/img/map/{z}/{x}/{y}.jpg', { attribution: 'no attribution'...
josiah_Langosh31 asked April 7th 20 at 09:49
2
answers

How to position the image on the map points?

Good day. Stuck on one task. For example, at downloadable any image. In the image indicate two points A and B. the Coordinates of points are in pixels: the left input field - top margin (y coordinate), right-input field - indent from left (x coordinate). Further, the map indicated two points which need to place the imag...
katrina_Ledn asked April 7th 20 at 09:34
1
answer

Why nepravilno showing pictures of beacons in vue2-leaflet on laravel?

Hi all. The problem is that the pictures of the beacons. that fly when building laravel.mix path : /public/build/images/vendor/leaflet/dist/{marker-icon.png} . But, when displaying maps in a browser, beacons are not displayed and are broken results in the console because of the lack of slash in the path like: localhost:81/b...
Estelle_Kihn99 asked April 4th 20 at 00:42
1
answer

How to control the viewport leaflet?

Just started to dig in leaflet.js. I can not understand how you can change the position of the viewport when you (need something be moved to specific coordinates).
santiago38 asked April 2nd 20 at 15:31
0
answer

How to get the best route a) subject to detour SK or TTK b) traffic C) if you do the calculation today and need for tomorrow?

Good afternoon, it is necessary to obtain the optimal route for cargo transportation to get the route should be routed with consideration of zones bypassed (skip of Moscow) to obtain the most optimal route taking into account traffic jams BUT need not for now and for the next date!
Horace51 asked April 2nd 20 at 15:24
1
answer

Popup does not display data in MarkerClusterGroup react leaflet?

Hello! From the Server come in json data, after receiving I display on the map Leaflet. As it turns out a lot of markers, I combine them into clusters using MarkerClusterGroup, clusters appear together with the markers, but popup on click is not display the information without the cluster everything works fine. Who did this...
daisy.Zboncak asked April 1st 20 at 18:04