Comments (4)
I've just committed initial work to support this (98f7a4b).
It makes use of the built in leaflet support for grouping markers, with a simple event handler on each row in the key.
Hiding a layer is nice and quick, but leaflet is actually removing all the markers, and you have to add them all back again to re-display. I'm going to file an issue with leaflet to see if the behaviour can be improved.
from brewmap.
Thanks - Looks good - I have deployed it on http://maps.webhop.net/BrewMap for now - will test it a bit and deploy it on the main site this evening.
I hadn't managed to work out how to hide a marker without removing it altogether either - it does seem like there is a 'visible' property missing from the Leaflet layer type. I might have a look at the Leaflet code to see what I can do - I would like to add a 'collision detection' feature so that it will not draw all the overlapping icons - a bit like mapnik does.
from brewmap.
Seems to work well to me, thanks. Have deployed it on main brewmap map (http://brewmap.maps3.org.uk). Will close this issue as you have it working, and we can open others if we come up with possible enhancements.
from brewmap.
I've just commented on a Leaflet issue on the problem:
https://github.com/CloudMade/Leaflet/issues/4
On 25 November 2011 17:26, Graham Jones
[email protected]
wrote:
Seems to work well to me, thanks. Have deployed it on main brewmap map (http://brewmap.maps3.org.uk). Will close this issue as you have it working, and we can open others if we come up with possible enhancements.
Reply to this email directly or view it on GitHub:
#16 (comment)
from brewmap.
Related Issues (20)
- Is the edit button necessary? HOT 2
- JSON data contains keys with null values HOT 3
- Render 'industrial=brewery' rather than 'industry=brewery' HOT 6
- Server code does not read BrewMapCfg.json file
- Map Key is not generated automatically HOT 1
- Statistics Box on main Page is emtpy
- Statistics should be shown as a table to make it neater. HOT 1
- Improve Microbrewery Icon HOT 4
- Type in popup incorrect HOT 1
- Web Page Layout Percentage Size HOT 2
- Multiple values HOT 1
- Vineyards HOT 1
- Adding support for relations HOT 5
- Use geoJSON for data file format HOT 2
- Improve Scalability of Server Side Code HOT 3
- Show tagQueries on a Map
- Cluster icons to de-clutter map. HOT 3
- Make code more Abstract HOT 1
- Attribution HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brewmap.