Comments (6)
I will probably create a new release this week.
from sldreader.
I figured out some more by debugging into OpenLayers. Somehow OpenLayers expects a different set of coordinates, because it actually multiplies the coordinates with 1.25 to create what OpenLayers thinks are pixelCoordinates.
I can solve it now to ignore the pixel ratio when creating the render context in
function getGraphicStrokeRenderer(linesymbolizer)
by adding pixelRatio=1 as an option to:
var render$1 = render.toContext(renderState.context, { pixelRatio: 1.0});
Is it possible for you to add this change?
from sldreader.
I don't think using a pixelRatio of 1 for the render context is the right solution. This means that graphic stroke marks become really tiny on mobile devices that typically have a pixelRatio of 3 or higher.
I think that it's better to scale the calculated stroke mark coördinates (and the gaps between the marks) with the pixelRatio. I will make a pull request that fixes this.
from sldreader.
Thanks for the quick fix! :-)
from sldreader.
Hi Arjen, when do you think you can create a release? I have a customer that is really happy with the new graphicstroke capabilities, and is eager to get the fixed version.
from sldreader.
I have just released v0.2.6 which fixes this bug.
from sldreader.
Related Issues (20)
- Addition of functionality HOT 2
- Faulty recursive function makes functionality break HOT 2
- Leaflet implementation HOT 1
- Posibility of Featuretypestyle can be blank
- Fill and Stroke with color from PropertyName does not work HOT 2
- Label with strCapitalize does not work HOT 5
- TTF in PointSymbolizer - Graphic - Mark - WellKnownName
- Release v0.2.1.12 introduced some issues HOT 2
- repeat a point or label HOT 2
- add an external graphic HOT 1
- Invalid cachedPointStyle HOT 3
- rotating graphics HOT 18
- SLD 1.1.0 SvgParameter stroke-dasharray HOT 2
- new kind of SLD HOT 1
- how to start a mark from the middle of the line HOT 2
- createOlStyle method in addition to createOlStyleFunction HOT 4
- Request: Symbolizer changes to improve QGIS support HOT 5
- change unit to meter HOT 1
- Preventing overlapping of labels HOT 3
- qgis2web openlayers export & SLDReader HOT 8
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 sldreader.