How to use the Leaflet 'maxBounds' option?
I’d like to restrict the panning of my leaflet map in Drupal. The Leaflet documentation mentions the maxBounds option And I’d like to know the best way to implement it for my map.
View ArticleHow to create dynamic legend for multiply layers with leaflet.js?
I want to create multiple choropleth maps which displays different statistical data with leaflet.js. So it would be nice to show different legends for each map. I create such legends for two layers...
View ArticleServing data based on tiles
I am new to mapping and displaying data on maps. I was trying to display markers on a map where each marker represents a point of interest on my map. Using leaflet it is quite straight forward to add...
View ArticleDraw Complex shapes
Is it possible to draw complex shapes (polygons) like below image, combining lines and arcs. It is more like a Land Survey plan. So I have coordinates of each point and in case of arc – Radius, Chord,...
View ArticleHow to use Leaflet Marker Cluster on markers from Leaflet-layerJSON (Overpass...
I’m having troubles getting the Leaflet Marker Cluster working with Leaflet-layerJSON. I’m trying to make a Leaflet map with data from OpenStreetMap. The markers are showing on the map, but they are...
View ArticleViewing map tiles generated from Maperitive in leaflet or openlayers
for few days i have been working on developing my own osm tile server. I tried it on linux as well as on windows, no complete success till now. I Have to make tile server on both windows and linux. for...
View ArticleChanging list-item css class using ng-class when mousing over Leaflet Map...
I’ve got a doozy of an ng-class problem. So I have an app with a map/markers on the right and a list-item menu on the left with info about the markers (like Yelp or Foursquare). With some of my...
View Articlelabels showing up behind other labels due to unmatched z-index
I am using leaflet label plugin to show labels on markers by using layer.bindLabel('name'). As the number of markers is high the markers come above the label thus labels are not visible clearly. Seems...
View ArticleCartoDB or Leaflet.js get coordinates of point clicked?
Using CartoDB or Leaflet.js is it possible to retrieve the coordinates of the point on the map clicked when opening an infowindow?
View ArticleLeaflet – Projection
Drupals Leaflet uses the Mercantor projection for leaflet, I would like to have a polar-projection. Is this possible? Any ideas of how to make this possible becuase I dont seem to find anything Thanks!
View ArticleLeaflet: how to change default style on a point GeoJSON Layer?
I need to change style on a point GeoJSON layer in a Leaflet map. I’m using the following code: function onEachFeature(feature, layer) { if (feature.properties &&...
View ArticleCartogram plugin for leaflet or OSM
Does anyone know if there is a plugin to make cartograms for leaflet ? I have sets of geotagged Twitter datas and I’d like to distord the map according to the density of tweets of every area of the...
View ArticleDistort image to display on leaflet.js based on known 16×16 point grid
I have an image that is a satellite picture, and with php gd I want to distort it so I can overlay it on a leaflet.js map. To make it a bit more simple, I have a grid of points, 16×16 which bind the...
View ArticleDisplaying geojson data in leaflet
I am trying to access and display some data in a geojson layer and would appreciate if someone can take a look at my code below and suggest what I need to do to make it work. The result of the...
View ArticleIs there a way to have a choropleth map in Excel reading data from a sheet?
Is it possible to have a solution similar to ESRI maps for office in which I want basically a geojson file or any file for that matters to render a choropleth map based on data in a sheet? Tried...
View ArticleRemove TileStache cache for a single feature
In a large parcel map, features are edited and need to be re-styled. I want to keep as much of the cache as possible, but invalidate the cache for features that are edited when the features are saved....
View ArticleHow to insert a map into another map?
If you look at this site it has a main map window but it also has a small window map at the top right corner. What is the technical term for the smaller window? How is that window created? I am...
View ArticleNeed Advice – Displaying very large amounts of data on Leaflet js from database
I’m researching the best way to display a very large weather dataset (850mb +/-) for folks to use on their mobile and desktop devices. This huge dataset (1 point every 12km across the USA) that I’d...
View ArticleDay and night zone layer for Leaflet
I’m working with Leaflet and I’d like to show the day and night zones adding a dynamic layer to my map. I was thinking to add a static layer with some transparency and make it move every x minutes but...
View ArticleMySQL Select rows where line strings are within a bounding box
I have a MySQL DB with some spatial data stored in a table after being input via ogr2ogr from a shapefile. The structure is similar to the following: OGR_FID int SHAPE geometry (all line strings) More...
View Article