Questions tagged as 'leaflet'

1
answer

Create map in R with ggmap

I have a database that every time an issue is generated creates a new entry, one of the parameters I have is latitude and longitude. I want to create a code in R that takes those values of latitude and longitude and generates a map of Mexico tha...
asked by 16.10.2017 / 23:05
0
answers

draw line enter 2 coordinates leaflet

I have a marker with the coordinates located: función onLocationFound(e) { var radius = e.accuracy / 2; L.marker(e.latlng).addTo(map) .bindPopup("You are within " + radius + " meters from this point").openPopup(); L.circl...
asked by 03.01.2019 / 20:40
1
answer

geolocation error timeout expired, leaflet library and ionic 3?

I ran in the browser and the code of the following link works: link However when installing on the device I get the following error: "geolocation error timeout expired" Does anyone know why this happens?     
asked by 12.11.2018 / 16:48
0
answers

Django-Leaflet: First argument in 'static' must be 'as'

Recently I upgraded django from version 1.8 to 1.11 and I have problems with the static loads of the tool django-leaflet , this is the error: I have installed: Django == 1.11.14 django-geojson == 2.11.0 django-leaflet = =...
asked by 16.07.2018 / 20:50
1
answer

Gray screen with Leaflet 1.3.1

I'm using Leaflet 1.3.1, to show a map on a blog made with Laravel and Vue.js But the screen appears in gray. Although the markers, and the controls do appear. And when I click on Inspect Elements, and I go to the layer, I see that i...
asked by 04.05.2018 / 12:33
1
answer

Translation of leaflet routing

I am trying to translate the leaflet routing component. Currently my code is the following. With the instruction language: 'sp' it does not work very well since only translates the form but not the instructions of the route. I know I must us...
asked by 18.04.2018 / 11:49
0
answers

Interactions on Leaflet

I am developing a project in which I have to migrate from Openlayers to leaflet and I have a question about the interactions since in Openlayers they can be defined with different Properties such as: var obCreationInteraction = new ol.inte...
asked by 24.01.2018 / 15:49
1
answer

Install Leaflet in Angular 4

I am new at Angular, and I am not able to install the Leaflet library, with the same calls to the library that I use in HTML I do not work at angular, I wanted to know if someone knows how to install it. Thanks and regards.     
asked by 05.01.2018 / 19:41
0
answers

EPSG Transformations in Leaflet

I'm migrating from the OpenLayers library to Leaflet and I have this problem: The OpenLayers code transforms the EPSG coordinates: 4326 to EPSG: 3857: var arCoordinates = ol.proj.transform(iarClickCoordinates, 'EPSG:4326', 'EPSG:3857');...
asked by 23.01.2018 / 22:47
1
answer

view proportional to leaflet point diagram, openlayers [closed]

I'm making a point map with leaflet, and at the beginning I have to define the view along with the scale; var map = L.map('map'). setView([41.66, -4.72], 5); It happens that after I have a diagram of points that will be gener...
asked by 25.07.2017 / 14:14