Category "leaflet"

How to make leaflet map and absolutePanel of inputs / outputs full screen in shiny

I want to click a button to make a leaflet map and all overlayed inputs full screen. Using the following example, I can make the map full screen but I lose the

Trouble displaying geometries on leaflet.js map

I am attempting to load a very large geojson to a leaflet map. The map is written in a JavaScript script and is referenced by the HTML script as is outlined bel

Add an opacity slider to a leaflet map generated in r

I would like to add an opacity slider to a leaflet map generated in r. It should change the opacity of the uppermost visible or all visible layers (either of th

User draw rectangle on leaflet map and post the coordinates on django form

I would like to create a djagno app, which will enable users to draw a rectangle on a leafet map and post the coordinates in order to create a vector. Firtsly I

Leaflet map object undefined inside GET request with axios

I am using the Vue framework in combination to create a frontend showing a map --> vue2-leaflet Inside a GET request using axios i want to set the data for a

How can I add a timeslider to a leaflet map?

I have a leaflet map, exported from qgis with the qgis2web plugin. I would like to add a timeslider for this map, as every layer (representing points) has a "fr

Leaflet.js Polyline from an array of LatLng points - remove/hide part of points connection based on distance

I'm new in Leaflet and I need to add a red polyline using an array of LatLng points like var latlngs = [ [45.51, -122.68], [37.77, -122.43], [34.04, -118.2] ];

Multiple layers on TMAP

I have a dataframe looking like this: dataframe Id is the zip code and the columns go from 2015 to 2019. Link to download the database (with the .shp file neede

Display a projected raster on a projected basemap in R/leaflet?

Is it possible to display a projected raster on a projected basemap in R/leaflet? The addRasterImage() functions says that the projection needs to be in EPSG:38

Update latitude and longitude Leaflet Vue js

const getAgenApi = () => { this.longitudeNow = parseFloat(106.105104103); this.latitudeNow = parseFloat(-123.123); // other code... }; mymap.on("geos

React project Error: Map container not found

I have a ts project written with React, I want to render a simple map an a rightsider but I got an error report "Error: Map container not found."Below is my met

Display Leaflet marker using latitude and longitude from XAMPP database using Laravel framework

I need help with this problem since I tried quite a few tutorials and videos, but I still can't implement them. The homepage of my website including the Leaflet

Leaflet : Suddenly I'm getting this error message: Failed to load resource: the server responded with a status of 403 ()

Suddenly I'm getting this error message, strange to me since I haven't been touching the map part : Failed to load resource: the server responded with a statu

Blurry leaflet OpenStreetMap

I am trying to add a precipitation tilelayer to my OpenStreetMap with below code but got a blur map. Anyone know how to fix it please? Maybe need to add attribu

Uncaught Error: Map container is already initialized

I am using React JS for making a webpage. My aim is to display a map on the front end. I am using the react-leaflet npm package for the same. However, I am gett

Javascript: Correct syntax for making editable custom properties (on click, toggle colour of Leaflet GeoJSON object)

I've written the following javascript code using leaflet to make multiple red polylines with each having property called "active" which starts as true. for

How can I get my Modal in Leaflet to appear in front of the map?

I am using leaflet to display a map of Jamaica which should prompt a modal to pop up once the user clicks on one of the parishes (states). Currently the modal a

how to use "leaflet-buffer" in react-leaflet?

I want to buffer the shapes I drew on the react-leaflet. But I can't find any npm library to react like "leaflet-buffer". Please help me.

Error: export 'control' (imported as 'L') was not found in '@raruto/leaflet-elevation' (module has no exports)

I have a angular application and need to use the custom leaflet package: https://github.com/Raruto/leaflet-elevation I am trying to use this in my application.

Rshiny app - overwriting and publishing app

I am having trouble updating a rshiny app on shinyapps.io The problem seems to be with the directory. This is what I have now: crime<-read.xlsx("wmsp_lat.xls