Viewing 11 replies - 16 through 26 (of 26 total)
  • Thread Starter pferdetermine

    (@pferdetermine)

    I found out one thing: I can see some maps – but only those without any upcoming events! So I guess the problem is indeed related to the content of the balloon. I use a table for displaying all upcoming events in the ballon text:

    <table cellpadding="0" cellspacing="0" style="font-size: small; padding: 0 0 0 0;"><thead><th min-width="75px !important" max-height="40px"></th><th ></th></thead><tbody style="padding: 0; margin: 0">
    <tr>
    <td min-width="75px">#_{d.m.y}#@_{-d.m.y}
                <td>
                  #_EVENTLINK
    {has_att_seminarleiter}, #_ATT{Seminarleiter}
    {/has_att_seminarleiter}
               </td>
            </tr>
    </tbody></table>
    

    So maybe the problem of not displaying any maps on my events and locations is related to the table or the {has_seminarleiter} ?

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Like I said in an earlier reply, please remove all hard enters in your balloon text. It’s clear you didn’t. ??

    Also, it could very well be the custom conditional placeholder. Have you tried without it?

    Thread Starter pferdetermine

    (@pferdetermine)

    I did BUT It is NOT the hard enter – since the balloon works with </br> on a location without upcoming events! It is related to the table or an ATT-attribute that is included in the formatting of the shortcode #_LOCATIONNEXTEVENTS.
    If there is only
    #_{d.m.y}#@_{-d.m.y}, #_EVENTLINK</br>
    the map is displayed.
    As soon as I add

    {has_att_seminarleiter}, #_ATT{Seminarleiter}
    {/has_att_seminarleiter} 

    it does not display the map anymore.
    If I delete the additional attribute and I add my normal table, the map is also not displayed (see my last comment). So it is definetly the ATT-Attribute AND the TABLE that causes your plugin to break and it is NOT the hard break.

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Stop yelling!

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    You are mixing up css styling and html styling. Things like !important simply do not work in html styling.

    Here’s a revised version to try:
    <table cellpadding="0" cellspacing="0" style="font-size: small; padding:0;"><thead><th colspan="2" style="min-width:75px !important; max-height:40px;"></th></thead><tbody style="padding: 0; margin: 0;"><tr><td style="min-width:75px;">#_{d.m.y}#@_{-d.m.y}<td>#_EVENTLINK{has_att_seminarleiter}, #_ATT{Seminarleiter}{/has_att_seminarleiter}</td></tr></tbody></table>

    But it would be much better to just give the table a class name and move all styling to your stylesheet.

    Thread Starter pferdetermine

    (@pferdetermine)

    I am not yelling – I am just emphasing the things that are important and the “strong” does not display. And yes, I tested with 1.5.1, and yes, I tested every combination. That’s why I said it is the table and the ATT-Field.

    Btw. The search by location from EM normally also needs he Google API. Is this also replaced by your plugin and OSM? In my local test-version it does not work anymore and complaints that the google API is missing.

    • This reply was modified 5 years, 11 months ago by pferdetermine.
    Thread Starter pferdetermine

    (@pferdetermine)

    Yes, that did the trick ?? That was one of the old copy+paste errors – Grrr. And yes, you are right, I should have changed this already to the stylesheet – but that website is only my hobby and I cannot spent much time on it currently….
    Great you found that one!!!

    I still have one question regarding the locations_map: I want to see all of Germany/Switzerland/Austria… on the map and when clicking on a marker I do not want to change the zoom but just keep the zoom-level as is. currently you zoom in the map and center the marker that I clicked on. this is confusing, when you want to click on various markers one after the other – the map is always flipping around. I would like to keep one zoom level for this single map.
    You can see on the live-website how I would like to have it also with OSM: https://pferdetermine.de/deutschlandkarte/

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Also, you table header is empty, so why even define that? You are creating unneeded code.

    It sounds like you have very specific needs, pferdetermine. Perhaps it is better if you hire someone for custom coding. Most users do want the zoom function and not show 3 countries. Your wishes were also not in the EM Maps, so custom coding would be your best solution.

    Thread Starter pferdetermine

    (@pferdetermine)

    What I described for the LOCATIONS_MAP is just the standard behaviour of EM and Google maps. So nothing special and definetly no need for custom coding with EM/GoogleMaps. Just look at the website link and you will see what I meant.

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    EM has no options to manually set map bounds. Just like in the Google API, OSM uses the selected locations to set the map bounds and adjusts it accordingly.

    Thread Starter pferdetermine

    (@pferdetermine)

    I did not say that there is an option in EM to manually set map bounds. Just have a look at the page and click on one marker after the other and you will see what I mean… : https://pferdetermine.de/deutschlandkarte/
    The zoom-level is not changed by clicking on a marker.
    When I do the same in your plugin it always zooms in. That’s the difference I meant.

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘Locations_Map’ is closed to new replies.