Numeric Markers
-
I need to make a map with numbered markers on it. Would you consider adding Awesome Markers to the extensions plugin? This specific distribution with alphabetical and numeric markers would be incredibly helpful!
-
Actually, this might be even better: https://github.com/coryasilva/Leaflet.ExtraMarkers
I’ll take a look at it.
You can test it now: https://leafext.de/en/marker/extramarker/
That is awesome. Thank you so much!
Sadly this only gets me about halfway to what I need. Of course, I made the mistake of assuming the extramarkers would be backwards compatible with the same features that leaflet-marker has, specifically being able to put an address in the shortcode and putting HTMl in the description. I’m guessing that Extra Markers would have to be changed to get those to work, right?
HTML in description – you mean e.g. a Link? This seems a bug, thank you very much for testing. What else are you missing?
Yep, links break it. I will confirm, but I think even
<strong> or <em>breaks it.-
This reply was modified 3 years, 8 months ago by
Ray Hollister.
Seriously, thank you!
Here’s two examples:
This one is working, but the description is not bold even though it is in a<strong>tag.https://porchfest-wjct.pantheonsite.io/jaxmusic/extra-marker-test/
Here’s the shortcode I used:
[leaflet-map lat=29.871672082404032 lng=-81.29361038423357 height=600 zoom=13 detect-retina fitbounds zoomcontrol scrollwheel tileurl=https://stamen-tiles.a.ssl.fastly.net/toner/{z}/{x}/{y}.png attribution='Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.'] [extramarker lat=29.871672082404032 lng=-81.29361038423357 markerColor=purple shape=circle icon=fa-number number=1]<strong>Test 1</strong>[/extramarker] [extramarker lat=29.892448944865485 lng=-81.31283436952994 markerColor=purple shape=circle icon=fa-number number=2]<strong>Test 2</strong>[/extramarker] [cluster] [fullscreen] [zoomhomemap fit/!fit]Here’s the second example. It is breaking. The only difference is I put in
<a href="/jaxmusic/">Test 1</a>in the description.
https://porchfest-wjct.pantheonsite.io/jaxmusic/extra-marker-test-2/Here’s the shortcode I used for it:
[leaflet-map lat=29.871672082404032 lng=-81.29361038423357 height=600 zoom=13 detect-retina fitbounds zoomcontrol scrollwheel tileurl=https://stamen-tiles.a.ssl.fastly.net/toner/{z}/{x}/{y}.png attribution='Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.'] [extramarker lat=29.871672082404032 lng=-81.29361038423357 markerColor=purple shape=circle icon=fa-number number=1]<a href="/jaxmusic/">Test 1</a>[/extramarker] [extramarker lat=29.892448944865485 lng=-81.31283436952994 markerColor=purple shape=circle icon=fa-number number=2]<strong>Test 2</strong>[/extramarker] [cluster] [fullscreen] [zoomhomemap fit/!fit][extramarker] also breaks and gives the same error if there is a linebreak in the description.
Here’s the error it’s kicking out:
Fatal error: Uncaught RuntimeException: Unclosed string at position: 687 in /code/wp-content/plugins/extensions-leaflet-map-github-main/pkg/JShrink/Minifier.php:500 Stack trace: #0 /code/wp-content/plugins/extensions-leaflet-map-github-main/pkg/JShrink/Minifier.php(258): JShrink\Minifier->saveString() #1 /code/wp-content/plugins/extensions-leaflet-map-github-main/pkg/JShrink/Minifier.php(154): JShrink\Minifier->loop() #2 /code/wp-content/plugins/extensions-leaflet-map-github-main/pkg/JShrink/Minifier.php(122): JShrink\Minifier->minifyDirectToOutput('\r\n-
This reply was modified 3 years, 8 months ago by
Ray Hollister. Reason: adding the error message
Now the Github version should work.
You should use:
[leflet-map fitbounds ....]
and
[zoomhomemap fit]
or
[zoomhomemap !fit]
I have tried to document howfitboundsandfitwork: https://leafext.de/en/doku/zoomhome/ . For marker is it better, you useleaflet-map fitbounds.-
This reply was modified 3 years, 8 months ago by
hupe13.
Published in version 3.2.
-
This reply was modified 3 years, 8 months ago by
The topic ‘Numeric Markers’ is closed to new replies.