All Projects β†’ 3mapslab β†’ Leaflet.streetlabels

3mapslab / Leaflet.streetlabels

Licence: ISC license
Display the street labels following polylines for Leaflet

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Leaflet.streetlabels

rainviewer-api-example
How to use RainViewer API: simple HTML + JS code which render an animated weather radar overlay on the map
Stars: ✭ 56 (-3.45%)
Mutual labels:  leaflet, leafletjs
Leaflet Cluster Example
πŸ—Ί Example of using the clustering plugin with Leaflet
Stars: ✭ 26 (-55.17%)
Mutual labels:  leaflet, leafletjs
mapus
A map tool with real-time collaboration πŸ—ΊοΈ
Stars: ✭ 2,687 (+4532.76%)
Mutual labels:  leaflet, leafletjs
harp-leaflet
Leaflet plugin for harp.gl
Stars: ✭ 16 (-72.41%)
Mutual labels:  leaflet, leafletjs
Leaflet Example
πŸ—Ί An example of how to use Leaflet to create an interactive map.
Stars: ✭ 41 (-29.31%)
Mutual labels:  leaflet, leafletjs
web-maps-wcag-evaluation
Manual accessibility evaluation of popular web map tools.
Stars: ✭ 28 (-51.72%)
Mutual labels:  leaflet, leafletjs
Leaflet.labeltextcollision
Leaflet.LabelTextCollision is a LeafletJS plug-in to display labels on vector data while avoiding label collisions.
Stars: ✭ 65 (+12.07%)
Mutual labels:  leaflet, labels
geogrid.js
Leaflet plugin for Visualizing Discrete Global Grid Systems
Stars: ✭ 37 (-36.21%)
Mutual labels:  leaflet
wp-plugin-trackserver
A WordPress plugin for GPS tracking and publishing
Stars: ✭ 34 (-41.38%)
Mutual labels:  leaflet
DAABBCC
Dynamic AABB Tree native extension with Branch and Bound Algorithm for Defold Engine
Stars: ✭ 42 (-27.59%)
Mutual labels:  collision
maptiles
Map tile generator. Converts an image into map tiles using ImageMagick. Map tiles can be used in Google Maps, Leaflet and other map rendering software.
Stars: ✭ 52 (-10.34%)
Mutual labels:  leaflet
HitboxBuilder-2D
Building hitboxes has never been easier
Stars: ✭ 21 (-63.79%)
Mutual labels:  collision
leaflet-defaulticon-compatibility
Retrieve all Leaflet Default Icon options from CSS, in particular all icon images URL's, to improve compatibility with bundlers and frameworks that modify URL's in CSS.
Stars: ✭ 71 (+22.41%)
Mutual labels:  leaflet
human-computer
A computer that uses nothing but human resources
Stars: ✭ 16 (-72.41%)
Mutual labels:  leafletjs
nagmapReborn
Nagmap Reborn - Standalone integration with some server monitoring systems providing a user-friendly interface through geographic visualization.
Stars: ✭ 19 (-67.24%)
Mutual labels:  leaflet
leaflet-layerJSON
Build dynamic JSON Layer via Ajax/JSONP with caching
Stars: ✭ 82 (+41.38%)
Mutual labels:  leaflet
leaflet-velocity
Visualise velocity data on a leaflet layer
Stars: ✭ 467 (+705.17%)
Mutual labels:  leaflet
echarty
Minimal R/Shiny Interface to ECharts.js
Stars: ✭ 49 (-15.52%)
Mutual labels:  leaflet
react-leaflet-bing
Bing layer as React component for Leaflet | This repo is obsolete. Plz, use https://github.com/TA-Geoforce/react-leaflet-bing
Stars: ✭ 13 (-77.59%)
Mutual labels:  leaflet
release-changelog-builder-action
A GitHub action that builds your release notes / changelog fast, easy and exactly the way you want.
Stars: ✭ 515 (+787.93%)
Mutual labels:  labels

Leaflet.streetlabels

Leaflet.streetlabels

A Leaflet plugin for showing street labels along polylines.

It's working with Leaflet as a addition to the awesome work done by yakitoritabetai Leaflet.LabelTextCollision and Viglino Canvas-TextPath

This project structure is a shameless copy of the Leaflet.fullscreen Leaflet.fullscreen by Leaflet.

Demo

You can rush to the demo here.

Using this plugin

Include this plugin JS file on your page from the dist folder after Leaflet library, Canvas-TextPath and Leaflet.LabelTextCollision as follows:

Usage

// Create a new renderer as follows (use any options as necessary):
var streetLabelsRenderer = new L.StreetLabels({
      collisionFlg : true,
      propertyName : 'name',
      showLabelIf: function(layer) {
        return true; //layer.properties.type == "primary";
      },
      fontStyle: {
        dynamicFontSize: false,
        fontSize: 10,
        fontSizeUnit: "px",
        lineWidth: 4.0,
        fillStyle: "black",
        strokeStyle: "white",
      },
    })

// Create a new map and attach the renderer created above:
var map = new L.Map('map', {
    renderer : streetLabelsRenderer, //Custom Canvas Renderer
});

Building

npm install && npm run build

Supported Leaflet Versions

Leaflet 1.0 and later versions should be supported. Earlier versions probably won't work (not even tested anymore).


Contributing

Any contributions to this project are more than welcome. Feel free to reach us and we will gladly include any improvements or ideas that you may have. Please, fork this repository, make any changes and submit a Pull Request and we will get in touch!

Contributors

Jorge Santos Leonel Dias
jdsantos leoneljdias
github.com/jdsantos github.com/leoneljdias

Support

The easiest way to seek support is by submiting an issue on this repo. Also, reach out to us at one of the following places!


Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].