Category "leaflet"

possible to implement two sequential flyTo in leaflet R

I would like to create a Leaflet Map which renders at a default location, at a zoom level of 4, and then when the user clicks the go button, pans from location

Set map id using folium?

I m using folium (Django/Python), I create a map: def create_map(): m = folium.Map(location=[9.934739, -84.087502], zoom_start=7 ) ..... folium creates

Update/Reload specific tile in leaflet dynamicly

If my server tells the clients when and what tile to reload/update, how can reload/update the tile sent from the server? I'm using the L.CRS.Simple CRS. And I h

Is there a way to obtain layer name from onEachFeature on react leaflet?

I have tried to found something inside feature and layer methods and properties (these are the params onEachFeature returns) but the documentation doesn´t

Navbar fixed left - Bootstrap

I am trying to make navbar in bootstrap to be fixed left, like on this link. Anyway, it is working, but when I add block content of the leaflet map, my navbar i

How to fix error "Failed to compile : ./node_modules/@react-leaflet/core/esm/path.js 10:41 Module parse failed: Unexpected token (10:41)"

I am trying to create a react-typescript app along with leaflet. I used the command, npm install leaflet react-leaflet @types/react @types/leaflet --save to ins

Embedding a Leaflet map on a Blazor SPA

How to Embed a Leaflet map on a Blazor SPA, using JSInterop, what objects should be defined, and how to pass data that represents the location clicked on the ma

How can I use external buttons instead of the default Layers Control?

Instead of Leaflet default Layers Control with checkbox, I want to use an <a> tag, when I click on it, it shows all associated layers to that button. I ha

Custom SRID in Django-Leaflet

I'm having trouble specifying a custom SRID with django-leaflet. The documentation on projections isn't very detailed, and mentions only briefly: By defaul

How to display 2 values on leaflet control search result(tooltip)

i'm using leaflet-control-search to search for markers.http://labs.easyblog.it/maps/leaflet-search/examples/outside.html markers are stored in json like this [

How can I insert interactive content into Wordpress CMS?

I'm trying to insert interactive, mobile responsive graphs and charts into WordPress. My original methodology was to use Altair/Folium to generate a HTML render

Mapbox studio - png labels layer - transparency showing up as black

I have created some custom styles in mapbox studio. They are essentially just the mapbox outdoors style and the mabpox satellite style, each customized, separa

Adding a leaflet in a precompile vignette

I'm maintaining R code in my company that is use by multiple colleagues. I decided to convert my code into a package to make it simpler to share, maintain and

Global map variable in Leaflet

I'm working in Leaflet, trying to do some zoom methods to remove layers when I zoom out. var map; //function to instantiate the Leaflet map function createMap(

How to detect when Mapbox/Leaflet enters or exits fullscreen mode

How can I detect when Mapbox or Leaflet enters or exits fullscreen mode? I found this answer where someone said this: Documentation says: map.on('fullscreencha

React-Leaflet marker files not found

I've got very simple code to display a map using react-leaflet and place a marker on it. However, i get the following two errors in my browser console GET h

Adjust the size of folium popups

Site_Number Site_Description Region_Site Latitude Longitude S1_AverageSpeed S1_85thSpeed S2_AverageSpeed S2_85thSpeed S3_AverageSpeed S3_85thSpeed String_for_P

Leaflet map 'Error in polygonData.default(data) : Don't know how to get path data from object of class data.frame'

I'm trying to create a leaflet map of census data. I have a csv file contains the number of deaths across Ireland. The data consists of the year($Year), the Sex

React-leaflet map shows scattered blocks of maps

I was trying to show a sample map on my react website. I have installed the leaflet package and also the react-leaflet package then set everything up as the rea

Creating a Leaflet map in code workbook in Foundry

Anyone created a leaflet map in Code Workbook using r-Leaflet? I have a functioning script that runs (also double checked in R) but how do I get it to visualise