Edit Placemark

  • Pleppo
  • Pleppo's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 1 month ago #12296 by Pleppo
Edit Placemark was created by Pleppo
Hello,

I wanted to ask if I could also use my own markers.
I do not want to exchange the icon over the FTP server with another icon.
If I select an icon type in "Edit Placemark", then only the blue needle will be shown in the map.

What can I do with "Hidden attributes for individual design"? What can I enter there?

many Greetings
F.

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

More
5 years 1 month ago #12297 by Dima
Replied by Dima on topic Edit Placemark
Hi.
For your own icons look
wiki.zhuk.cc/index.php/Zh_GoogleMap_Desc...e_for_Resource_Files

Ie you can copy it by FTP to special folder and use it.
Or do you want to use "special button" to upload your icons from admin panel?

As for hidden attributes - if you need store some own data - you can fill this fields. I don't process it in any case. For example - external ID for loaded data and so on. But you can't create individual design. Can you describe little about what you want to have "individual".
You have Addition HTML field, and can enter any HTML formatted data. Moreover, for this field (addition HTML) enabled plugin processing.

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.

  • Pleppo
  • Pleppo's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 1 month ago #12299 by Pleppo
Replied by Pleppo on topic Edit Placemark
Hi Dima,

the tip with the icons was good. I did it that way.
For my purposes I need only one point (1x filled, 1x unfilled).
It is only an image as an icon?
Or is also a font Awesome Icon z. B .:
<i class = "fa fa-circle-o" aria-hidden = "true"> </ i>
<i class = "fas fa-circle" aria-hidden = "true"> </ i>

I did not have an idea what to type in "Hidden attributes for customization".

Can I perhaps enter an ID or class here and then write the styles in the css file?

many Greetings
F.

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

More
5 years 1 month ago #12301 by Dima
Replied by Dima on topic Edit Placemark
As for Awesome and etc.
Leaflet supports HTML text as icon.

leafletjs.com/reference-1.4.0.html#divicon

I have plans to add this to my component; in placemark details you can see Marker with label tab. It will transform to divIcon icon type. But I think I'll rename it.

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.

  • Pleppo
  • Pleppo's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 1 month ago #12302 by Pleppo
Replied by Pleppo on topic Edit Placemark
Hi :-)

That's a great idea!
I am absolutely thrilled with the component!
You also know a lot about leaflet.
I already started to create a map with it.
simon.sommerfugl.de/index.php/verbreitungskarte

For this I additionally use the "leaflet-locationpicker".
simon.sommerfugl.de/index.php/mein-bereich/fundmeldungen
I then enter the decimal degrees in your placemarks.
Later, the 2 decimal degrees of this form should be automatically entered into the database and automatically create a new placemark.

I have KML files and GPX files in the backend as paths. They are displayed as layers above the OSM.
The squares are TK25 quadrants. If you click in a quadrant, then a popup will pop up with the name. The KML / GPX files have these names and numbers in the source code.

I do not know if there is a leaflet script that can read out the number / name from the GPX or KML file if I have an input field in the form where I have the TK25 number (eg 3648), always 4 digits is, and displays a dot directly in the middle of the right quadrant on the map.

many Greetings
F.

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

More
5 years 4 weeks ago #12321 by Dima
Replied by Dima on topic Edit Placemark
Hi.
I did new release with Marker with label support
zhuk.cc/2019/03/27/zh-openstreetmap-placemarks-can-have-label/

You can show your Awesome Icons.

You should know, that you have to add CSS for this icons. By your template. Or you can load it by settings URL into map properties in Advanced options field "Additional CSS style files for loading"

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.

Time to create page: 0.094 seconds

Donate


Go to top