StephanGeorg / staticmaps

A Node.js library for creating map images with markers, polylines, polygons and text.
MIT License
167 stars 49 forks source link

Absolute position text #89

Open thewh1teagle opened 10 months ago

thewh1teagle commented 10 months ago

Hello! I have a situation where I need to place text/SVG in an absolute position on an image/map, such as positioning the Google attribution in the bottom right of the image. I know I can use another library for this, but I wonder if it's possible to achieve this with the current library.

Example:

map.addSvg({path, x: 95, y: 95}) // position between 0 to 100
map.addText({text: 'hello', x: 95, y: 95}) // position between 0 to 100