merterdemir / ol3-aswcr Goto Github PK
View Code? Open in Web Editor NEWThis project forked from mrpl0p/ol3-aswcr
Advanced styles in OpenLayers 3 - Image fill style features with canvas renderer
This project forked from mrpl0p/ol3-aswcr
Advanced styles in OpenLayers 3 - Image fill style features with canvas renderer
OpenLayers 3 - Advanced styles with the canvas renderer This JavaScript file allows OpenLayers 3 users to assign an image property to the fill object. No mater the image size, it will repeatedly fill the feature which has the advanced style. Version: v1.0 ------------------------------------------------------------------------------------------------------------- How to include : To use the ol-aswcr.js file, you have to include it in your html page AFTER the ol JavaScript file including. <html> <head> ... </head> <body> ... <script src="../Ressources/ol-debug.js" type="text/javascript"></script> <script src="../Ressources/ol-aswcr.js" type="text/javascript"></script> <script> ...Your script... </script> </body> </html> ------------------------------------------------------------------------------------------------------------- How to style : the 'image' property of the fill object is an array : [imageObject, opacityNumber] imageObject : the image object with which you want to fill features opacityNumber : the transparency intensity, number between 0 and 1, in which 0 is fully transparent and 1 is fully opaque <script> var img = new Image(); img.src = 'yourImagePath'; var yourStyle = [new ol.style.Style({ fill: new ol.style.Fill({ image: [img, 0.4] }), stroke: new ol.style.Stroke({ color: "black", width: 2 }) })]; </script>
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.