hupe13
Forum Replies Created
-
Wait, so your saying that
iconurl=”{url}”
iconsize=”{size}”Can not take the data from the json and you gotta manually add it in?
He answered. But I made a working example.
Forum: Plugins
In reply to: [Leaflet Map] is it possible to create something like this?Unfortunately, this is not possible. But take a look at Extensions for Leaflet Map, maybe you can realize something similar with it: Documentation and Examples
Forum: Plugins
In reply to: [Leaflet Map] text from markers in kml<br /><br>
Maybe this is an error in rendering. Do you have an URL to a test page?
Forum: Plugins
In reply to: [Leaflet Map] text from markers in kmlWhat you are using now? (The translation with deeple I don’t understood.) If there are such errors the kml may be not correct.
Forum: Plugins
In reply to: [Leaflet Map] text from markers in kmlUse either
[leaflet-map fitbounds]
[leaflet-kml src="https://your-domain.tld/path/to/file.kml"]{name} - {description}[/leaflet-kml]or
[leaflet-map fitbounds]
[leaflet-kml src="https://your-domain.tld/path/to/file.kml" table-view][/leaflet-kml]Forum: Plugins
In reply to: [Extensions for Leaflet Map] Add a scrollable list of markersa scrollable list of all markers
Unfortunately, there is no such thing in this plugin.
Forum: Plugins
In reply to: [Extensions for Leaflet Map] Add a scrollable list of markersA list of all markes is not shown, you can only search for specific ones. Or is there a certain command to show all by default?
Have all marker a popup?
[leaflet-marker title="Title 1" lat=0 lng=0]Marker 1[/leaflet-marker]
Then you can search:
[leaflet-search propertyname=popupContent ....]
Also, the Search field seems to be off a bit. Is this just me? Using Hueman Pro as theme.
This is a css problem from your theme. Put the css somewhere, in the customizer, in your functions.php, child-theme, …., or simply in a html block with
<style>...</style>
:.leaflet-control-search .search-input {
margin: 4px 0 4px 4px !important;
}I tested it with the Hueman theme. If it does not work with Hueman Pro, ask the theme support.
- This reply was modified 1 month, 3 weeks ago by hupe13. Reason: customizer
Forum: Plugins
In reply to: [Leaflet Map] Accessible mapsUse this shortcode:
[leaflet-marker title="Kyiv" lat=50.4501 lng=30.5234]Kyiv, Ukraine is the birthplace of Leaflet![/leaflet-marker]
Forum: Plugins
In reply to: [Extensions for Leaflet Map] Empty paragraph tags appearing before/afterYou can test the Github version (pay attention to the docs). Or install the plugin WP Rollback and “rollback” to the trunk.
- This reply was modified 1 month, 3 weeks ago by hupe13.
Forum: Plugins
In reply to: [Extensions for Leaflet Map] Empty paragraph tags appearing before/afterThe problem with
</br>
is solved for the block editor. I will see what I can do.Forum: Plugins
In reply to: [Extensions for Leaflet Map] Add a scrollable list of markersYou are searching
leaflet-marker
, right? The optioniconClass
inleaflet-search
is valid only, if you use this option inleaflet-marker
. ValidpropertyName
s forleaflet-search
are the options, which you are using inleaflet-marker
.popupContent
is always a validpropertyName
forleaflet-search
. https://leafext.de/en/leafletsearch/searchmarker/Forum: Plugins
In reply to: [Extensions for Leaflet Map] Add a scrollable list of markersleaflet-search
has such a function. But you need to search anything. This example is with geojson markers, but it works withleaflet-marker
also.Forum: Plugins
In reply to: [Leaflet Map] One shortcode for map and markerYou need the two shortcodes. You can write more than one shortcode in a shortcode block. If it does not work for you, ask your theme support, because your theme isn’t a free one.
I’m sorry, but I don’t understand what you want to group by. Maybe it’s better to group the features from the kml file according to their properties with
leaflet-featuregroup
? Do you have an URL to a test page?I was surprised myself when I tested it that it worked. I have to adapt the documentation:
[leaflet-map fitbounds]
[leaflet-kml src="https://your-domain.tld/path/to/file.kml"]{name}[/leaflet-kml]
[leaflet-search propertyname=popupContent textPlaceholder="Some hint"]
...
[zoomhomemap]propertyname=name
works also. (or some other property instead ofname
). Like for geojson.