• Resolved acrockofschmidt

    (@acrockofschmidt)


    When using the Map & Locations shortcode generator, the wizard offers the opportunity to choose a marker style and provides 4 colours flag options. However, if each individual post has been given a specific marker (from those offered in OSM plugin) in the Add Location wizard, the shortcode generated with Map & Locations shows those specific markers, not the marker style chosen in the wizard.

    This is hard to explain without images. For example, if I have a post and Add Location with mic_black_zoo_10.png as the marker, no matter what I choose for marker style in the Map & Locations wizard, the shortcode uses mic_black_zoo_10.png when generating the map. I like this, actually.

    This is where it goes awry. I have been adding my own custom markers (e.g. tt_pin_blue.png) directly into the wp-content/plugins/osm/icons folder because I wanted markers not available by default in the plugin. Up until the most recent update, this worked fine. As described in the previous paragraph, short code generator for Map & Locations would override and use my designated custom marker in the maps it created. That is no longer happening.

    To summarize, Map & Locations defaults to given marker (using Add Location) if that marker is one of the default markers in the plugin. If the given marker (using Add Location) is one of my custom markers, Map & Locations defaults to the Marker Icon chose in the Map & Locations wizard. I would prefer if OSM Plugin returned to using the given marker (via Add Location) in all situations, no matter whether said chosen mark is a provided plugin marker or a custom user added marker (this is how it worked prior to resent update). Thanks.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author MiKa

    (@photoweblog)

    Hello @acrockofschmidt ,
    thank you for your feedback.
    The idea was to leave the behavior unchanged, but it can’t be ruled out that “something happened” anyway.
    Nothing should be saved in the OSM Plugin folder because the folder is deleted during an plugin update. This means that if you save private icons there, they will be deleted during the update. Did you copy the icon back into the folder after the update?

    Thread Starter acrockofschmidt

    (@acrockofschmidt)

    I did update all my custom icons in the icon folder (I just did it again and problem persists). I discovered this folder gets overwritten soon after I had patted myself on the back for figuring out how to add custom icons this way. I should note, I discovered this because an update would remove ALL my custyom pins and the map would show no pins of any kind. It would literally be a blank map and then I would re-upload the custom pins and they would show properly. So, this latest update resulting in the blue pins showing is doubly different compared to previous behaviour.

    I don’t disagree that my “solution” isn’t the best. I did so because I wanted a greater variety of pins that weren’t pictograph style. Under MISC there are four simple coloured pins (black, green, red, blue) and in URBAN there are two thumbtack style pins (gold, white). These are the only options for pins that are not the larger, circular style with an image in them. Those are great, don’t get me wrong, but not what I prefered for this specific application.

    I wanted more options for colour with the small, simple pins. I’m using them to create a map with maybe a dozen different categories displayed together, with each category having a designated colour. I thus made my own squared thumbtack style pins (smaller than those in URBAN) in various colours (black, blue, gold, green, orange, purple, red so far). I’ve even made pins with two colours (red/black, red/purple, green/gold) to indicate they are contained in two categories.

    Plugin Author MiKa

    (@photoweblog)

    Hello @acrockofschmidt,

    you should not store any data in the folder:
    <your domain>/wp-content/plugins
    or in its subfolders. Also not in the plugins/osm folder.

    If you want to use your own icons, it’s best to create a folder called:
    osm_map
    under:
    wp-content/uploads
    so it’s:
    wp-content/uploads/osm_map/
    Then copy all your icons into this folder.

    In your posts or pages, you will find a field in the “Custom Fields” section called “OSM_geo_icon.” There, you change the value, for example, to:
    “../../../../wp-content/uploads/osm_map/tt_pin_blue.png”
    and then click “update.”

    After that, your icons will be displayed correctly in the map, and everything will continue to work during plugin updates without you having to copy the icons again and again yourself.
    Br, Michael

    Thread Starter acrockofschmidt

    (@acrockofschmidt)

    I did as you recommended and it is working. I’ll confirm after next update, but for now this is fixed. Thanks for the guidance. Much appreciated.

    Thread Starter acrockofschmidt

    (@acrockofschmidt)

    Ah, I just updated the plugin and my custom pins remained. Bravo!

    Thanks again.

    Plugin Author MiKa

    (@photoweblog)

    Thanks for the confirmation!
    It’s great to see that you’re making use of the plugin with all its possibilities.

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.