Skip to content

Choose reference point for icon placement #50

Open
@Ragos81

Description

@Ragos81

environment

  • php version:
  • dokuwiki version: 2022-07-31a "Igor"
  • plugin version / date: 2023-01-20
  • list of any other plugins (apart from bundled plugins):

current behavior

I noticed that the reference point of the icon is in its center, which might make sense for some icons, but in some cases it should better use (for example) the lower center. If not, with every change of the zoom level the marked position seems to point to another location.

Original location:
<olmap id="olMap" width="400px" height="300px" lat="31.72533" lon="119.82111" zoom="14" controls="1" baselyr="bing road" summary="location X"> 31.72533,119.82111,0,.8,factory.png,Here is the gold </olmap>
Screenshot 2023-01-29 183906
Arrow point to a position on land

Same location with different zoom level:
Screenshot 2023-01-29 183855
The arrow point to a position in the lake

improvement suggestion

Would it be possible to have a setting to define the reference point of an icon?

I think of referring to directions like:

NW N NE
W C E
SW S SE

...with "C" as the standard setting.

Then the code with the lower center (S) as reference for the icon placement could look something like that:
<olmap id="olMap" width="400px" height="300px" lat="31.72533" lon="119.82111" zoom="14" controls="1" baselyr="bing road" summary="location X"> 31.72533,119.82111,0,.8,S,factory.png,Here is the gold </olmap>

Alternatively, it could be also a general setting in the admin panel.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions