Comments (6)
Can you do up a jsfiddle that reproduces this? Also which browser are you using?
from leaflet.label.
I've tried to do but there is a problem with external resources.
The code is this:
var tileUrl = 'http://{s}.tile.cloudmade.com/BC9A493B41014CAABB98F0471D759707/997/256/{z}/{x}/{y}.png';
var attribution = 'Data, imagery and map information provided by <a href="http://open.mapquest.co.uk" target="_blank">MapQuest</a>,<a href="http://www.openstreetmap.org/" target="_blank">OpenStreetMap</a> and contributors.';
var tileMap = new L.TileLayer(tileUrl, {
maxZoom: 18,
attribution: attribution,
detectRetina: true
});
var latlng = L.latLng(38.35323, -0.49215);
var map = L.map('map_canvas', {
center: latlng,
zoom: 13,
layers: [tileMap]
});
var especial = L.markerClusterGroup();
var setComision = function (event) {
return false;
};
L.marker([38.34326, -0.50832]).bindLabel('Florida Plaza la Viña', {
noHide: true
}).on('click', setComision).addTo(especial).showLabel()._leaflet_id = 1;
L.marker([38.34236, -0.51459]).bindLabel('Florida Sur', {
noHide: true
}).on('click', setComision).addTo(especial).showLabel()._leaflet_id = 2;
L.marker([38.34251, -0.51196]).bindLabel('La Florida', {
noHide: true
}).on('click', setComision).addTo(especial).showLabel()._leaflet_id = 3;
map.addLayer(especial);
And this is the effect: http://s16.postimg.org/s2ubrgmf9/Captura_de_pantalla_2013_08_22_a_la_s_00_20_09.png
Marker of "Florida plaza la viña" is more blurry than the others, because both are just exit from cluster.
I've tested on Chrome, Safari, Safari iOs, Firefox, Android 4.2.2 browser and it happens only on Chrome, Safari and Safari iOs.
from leaflet.label.
I have the same problem after updating the leaflet version and leaflet.label version.
When labels are first added, they render fine, and keeps rendering fine when panning the map (because no update is done upon map event 'moveend')
However, when zooming, the labels get updated in a way that makes it render using hardware acceleration which in turn makes it render kind of 'blurry'.
See screenshot.
Left: Before zooming.
Right: After zooming in and out
http://s8.postimg.org/cy7thhuat/mazemap_blurred_labels.png
Reproduced on:
Chrome Version 28.0.1500.95
Safari Version 6.0.5 (8536.30.1)
Mobile Safari on iPhone
Tested, but issue is not visible on:
Firefox Version 23.0.1
IE9 on Win7 (Zoom animation gets disabled because lack of 3d-transform?)
Tested with interesting result:
IE10 on Win8 : Labels are blurred the short period of time when the map is doing animated zoom, but at the end of the zoom event, the labels are re-rendered shart as they should be.
from leaflet.label.
Forcing _updatePosition() in the _onMoveEnd() function makes the labels redraw correctly after a zoom-evend, but this seems to scale poorly, when having many labels as it shouldn't need to do it I guess...
from leaflet.label.
Finally got around to looking into this. You wouldn't believe the solution ;) The issue was the new pixel position of the label (after zoom) was not being rounded.
from leaflet.label.
Amazing fix! So simple, haha!
—
Sent from Mailbox for iPhone
On Tue, Oct 22, 2013 at 12:17 AM, Jacob Toye [email protected]
wrote:
Finally got around to looking into this. You wouldn't believe the solution ;) The issue was the new pixel position of the label (after zoom) was not being rounded.
Reply to this email directly or view it on GitHub:
#44 (comment)
from leaflet.label.
Related Issues (20)
- labels not moving after panTo in Leaflet HOT 5
- Click event when dragging from label HOT 2
- Display label in center of Circle permanently HOT 2
- Label on geoJson Layer HOT 1
- Change noHide option at high zoom levels
- Some labels not displayed when removing layer and re-adding it while using Leaflet.markercluster HOT 4
- About maintainer on npm
- Labels are not removed from Map under IE11/Edge HOT 1
- Bad positionning when noHide with Leaflet.markerCluster HOT 6
- Maximum call stack size exceeded when loading Leaflet.label HOT 8
- leaflet.label plugin error HOT 1
- Cannot set property 'labelVersion' of undefined HOT 3
- Version 0.2.4 does not work together with ui-leaflet 1.0.1
- RTL support
- overlapping labels
- Leaflet.label 0.2.4 is not compliant with leaflet 1.0.2 HOT 2
- L.bindTooltip throws error in console HOT 5
- labels outside polygon
- Claim: bottom label
- Archiv this repo HOT 1
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 leaflet.label.