imagico / jsdotpattern Goto Github PK
View Code? Open in Web Editor NEWGenerator for random periodic dot and symbol patterns for use in map rendering
Generator for random periodic dot and symbol patterns for use in map rendering
The web version supports multiple pattern sizes, but I don't see support for this in the codebase
Please add a fish symbol to the list of available shapes. This would be helpful for gravitystorm/openstreetmap-carto#1774.
should be self explaining.
When loading a symbol offsets are calculated automatically based on the symbol bounding box. This however does not work together with pixel aligned rendering at the moment - you need to manually specify the correct offset to get proper pixel aligned rendering for most symbols.
http://www.imagico.de/map/jsdotpattern.php#x,512,jdp6894; correctly sets image size to 512 but in "pattern size:" panel 256 is still marked as active.
Similarly http://www.imagico.de/map/jsdotpattern.php#x,128,jdp49994; or http://www.imagico.de/map/jsdotpattern.php#x,1024,jdp89182; are affected in the same way.
Firefox 39 on Lubuntu 14.04, tested with all add-ons disabled.
Mapnik cannot make use of SVGs with <use/>
to my knowledge. This is annoying, but unlikely to change by 3.0 release. A mode to generate a SVG without would be useful.
This does not matter with currently released versions of Mapnik, which do not support SVGs for polygon-patterns at all, and the output of this tool is extremely unlikely to be used with a point symbolizer.
Currently I’m playing around with svg_pattern.sh to clip an SVG pattern. The very same pattern has to be clipped to various sizes. It seems like the most slow part is sanitizing, and not clipping. I would like to sanitze only once the SVG pattern. And later clip/cut various sizes of this pattern. Currently I always run svg_pattern.sh with the hole sanitizing process. Would it be possible to clip a pattern without sanitizing? In a separate script? Or add an option to svg_pattern.sh to run it without the sanitizing?
Currently generate button is described as
This should be done before any of the other buttons is used.
It seems that ‣/∇/☐ buttons also may be used as the first one.
I have no good idea how to improve it (that is why this is issue rather than PR).
BTW, thanks for this tool!
Symbol selection is currently very crude and without preview.
When this is changed additional symbols as those used for openstreetmap-carto can be added.
To reproduce:
This also happens if you select the "use" button on any symbol and add other symbols. When you remove the previously "use"d symbol, the whole pattern switches back to the default tree.
I am trying to run the svg_pattern.sh, but it generates a lot of errors.
inkscape -g --verb EditSelectAll --verb SelectionUnGroup --verb EditSelectAll --verb SelectionUnGroup --verb EditSelectAll --verb SelectionUnGroup --verb EditSelectAll --verb SelectionUnGroup --verb EditSelectAll --verb ObjectToPath --verb EditSelectAll --verb SelectionCombine --verb FileSave --verb FileClose --verb FileQuit frai.svg
Shortcut::add_shortcut: duplicate shortcut found for: <Primary>comma Old: SelectionShrinkHalve New: DialogPreferences !
...
./svg_pattern.sh: line 66: 66238 Segmentation fault: 11 inkscape -g --verb EditSelectAll --verb SelectionIntersect --verb FileSave --verb FileClose --verb FileQuit "$TARGET"
# and now we add this again as a workaround for Mapnik's senseless auto-centering
sed -i -e "s?<desc?<rect width=\"$SIZE\" height=\"$CLIP\" rx=\"0\" x=\"0\" y=\"0\" id=\"rect8566\" style=\"fill:none;fill-opacity:1;stroke:none\" /><desc?" "$TARGET"
+ sed -i -e 's?<desc?<rect width="1296" height="1296" rx="0" x="0" y="0" id="rect8566" style="fill:none;fill-opacity:1;stroke:none" /><desc?' frai.svg
inkscape -z --vacuum-defs -l "$TARGET" -f "$TARGET"
+ inkscape -z --vacuum-defs -l frai.svg -f frai.svg
Warning: Option --without-gui= is deprecated
Unknown option -f
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.