Comments (4)
Done in v0.9.0
Examples:
centerMarker:
enabled: true
centerMarker:
enabled: true
scale: 1
centerMarker:
enabled: true
scale: 1
anchor: [0.5, 1]
src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAKBUlEQVR4Xs1baWxc1RX+zn0z4zVOTNJ4xk4IhYSULJQ2Cok9M8kERFHicdiaULWlUheBWiHRSnShCypqRamqqhWI/oAuqEWFklKWGdstjcCOZxynkApKs0CgIRAvOGRxHHs8y7unupO4dWbmvXlv5o3D/WNp3jnfOfd755577nnXhFkY721rrXFPan4AISZaDcmXQ2AhE+Yo88QYh8QoBL1J4H8B1JM4o8U/2tMzVWn3qJIGBrcG/ULy7ZLlzYJEvR1bUmIcxE+7oD3a1Lmr346uHdmKEDDU7g8S6H4QAnacMZSVsleQ67uVIMJRAo60Bxo9hF8C+IIjE58BIgEWEo9Vpaq/cdHOnWNO4TtGwMiWwDoW+BOAJU45VwhHSv0wQWxv7oq/4oQdRwgY6gjeSKw/AYhqJ5wqiiGRIA3bvZFYtKhsEYGyCRju8G+XOv9RCKGV64wdfQmZIaZbmzvjf7GjlytbFgEj4eC1LLkLAp5ynChdVyZB2vW+SF9vqRglE3B0c2iRBv1VaDzfqvFEJoOJVBqT6QzSUocuOauqCYJbaKh1u1Dv8aDaZT2YJDDqSdNVH/lb37BVP2bKlUQAAzTS4e8B0wYrRsdTKRyfnEJS162Io8rlwoKaatR73JbkGbyzORq/zpJwjlBJBAyHA18E8NtiBiUzRs5MQhFQypjj8cBbXwtBxd0kwme9kdgTdu0UR85BPBwKVXtqM+8IgSYzY2kpcXRsHCkp7fp0nrxH07BoTh3cWtFlcfR4zYnLVu3Yb4tt2wQMh/13AvSQ2awykvHu2GkoEpwYbk3g4oY5cAlhCseg25ujfY/asVkCAYGDAJYbGVFp7b2x00hkCq93CUgBehGQLxLoiMJhpksIfI1O2CSAgrOscbmxeG49zByW4NdbovErK0bAcDh4NcB7zAycSCRxbHKyoA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6+Y8Vky30+KwRkE2I4+C2A1fW34oNxt68z9vPiguVLzBoB/962wjN/cv4+EC81c5shD/mGkytp7968myHlTzcfYdYIUKZHitwyUTIEbPVGY5FKTPaCJcGZhofb23aCxLWFnGHG35s7YwWvyVaKkFmNgGwUtLet0hmv5n5hllLqQqOP+yLxfZWa7IciArIJscP/KzB9daZDEni4JRq7czYnf27JzbZJ1T4LLRB66hALMe+sdXlSd2eW2fmu75TXs74Eph0favd/nYh+kX0LhLu8kdiDTk3KDs4FI4DXrHGP+GpeV6/fe8Z1JfX05NyytjON0mUvGAHZXBD2bwGBrV5qLH2axpr/BaE3g25IEd6oAAAAAElFTkSuQmCC'
from inkdrop-ol.
Updated the above comment. Added all icon options to be available to use in the centerMarker property as the icon position depends on the icon size and anchor must be updated when using custom icons.
from inkdrop-ol.
@craftzdog do you think this plugin can be done for the mobile app? It currently does some hacky electron stuff, but with some extended csp integration api those can be overcome and made as fallbacks for the desktop app.
from inkdrop-ol.
Cool, I was about to report the marker anchor issue but it's already fixed. Thanks!
The mobile version has the same CSP and I'm not sure if your workaround works on the mobile app as well.
I remember that I avoided it by using iframe
in the embed plugin:
It works fine on the mobile version.
Hope that helps!
from inkdrop-ol.
Related Issues (2)
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 inkdrop-ol.