Label or Marker for center of Path

  • webiedesign
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 3 months ago #12806 by webiedesign
Label or Marker for center of Path was created by webiedesign
Is it possible to have a label or marker display automatically in the center of a path ? Like this ?

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago #12807 by Dima
Replied by Dima on topic Label or Marker for center of Path
Hi.
If your image is KML file - today - No.
You can set type to Internal parser, and set to show name or description as popup or tooltip (on hover event).

I can add into my parser option - to use name or description as text in path center (I can get center). And you will have ability to change styles for divs with this text.

Don't forget support my developments: post review in JED , donate , help with translation ;)

Please Log in or Create an account to join the conversation.

  • webiedesign
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 3 months ago #12808 by webiedesign
Replied by webiedesign on topic Label or Marker for center of Path
No I am converting the KML file to paths in the Zh Open Street Map component. The image I sent was from a KML file, but I won't be using it.

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago #12809 by Dima
Replied by Dima on topic Label or Marker for center of Path
It doesn't matter. I can get center for path (polygon).
And I can easy add ability to show some information.
For example, like marker as label



or like tooltip


Don't forget support my developments: post review in JED , donate , help with translation ;)
Attachments:

Please Log in or Create an account to join the conversation.

  • webiedesign
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 3 months ago #12810 by webiedesign
Replied by webiedesign on topic Label or Marker for center of Path
That would be great !

Please Log in or Create an account to join the conversation.

More
4 years 3 months ago - 4 years 3 months ago #12811 by Dima
Replied by Dima on topic Label or Marker for center of Path
Hi.
I added ability

zhuk.cc/2019/12/06/zh-openstreetmap-new-feature-for-paths/

I didn't implement tooltip style because I think I can't do that way.

I'll think of implementing tooltip style a little bit later.

Don't forget support my developments: post review in JED , donate , help with translation ;)
Last edit: 4 years 3 months ago by Dima.

Please Log in or Create an account to join the conversation.

Time to create page: 0.185 seconds

Donate


Go to top