• Resolved loiruca

    (@loiruca)


    Hello.. this is driving me crazy for almost 2 hours. I have added a custom image to the locations markers but no matter what I try it just shows broken images once live. The instructions on the plugin site says to upload the folder map_images, but doesn’t say where to upload to. I tried uploading it to ‘Uploads” no luck. I uploaded it into the plugin folder, then into the includes folder, but no luck there either. Of course once I upload it I change the path in the mapdata.js to reflect the location. I am pulling my hair here and feel that this should be an easy task, but it just not working. I also uploaded the image to my library and changed the path in the mapdata.js to go the the library image. no luck! Does anyone have any idea what I might be doing wrong? Any help is much appreciated.

    https://www.ads-software.com/plugins/interactive-maps/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author simplemaps

    (@simplemaps)

    Hi Loiruca,
    Sorry to hear you are having trouble. The map looks for the map_images folder in the same directory as the continentmap.js file. However, you can overwrite this by adding:
    images_directory: 'https://yoursite.com/map_images/',
    to the main_settings of the mapdata.js file (where you replace the above url with the location of the map_images folder on your website). Let me know if the problem persists after you do this.

    Chris

    Thread Starter loiruca

    (@loiruca)

    Hi Chris, thanks for your reply. The map_images folder is sitting in the same directory as as the continentmap.js file, in the uploads directory on my site, but no luck. I tried adding the images_directory: ‘https://yoursite.com/map_images/’, of course changing to my site info, to the main_settings of the mapdata.js and no luck either. Other than the plugin files, I only have the continentmap.js, mapdata.js, and the map_images folder which are all sitting in my uploads folder. Do I need any additional files in there too? What about the files in the plugin folder? Do I need to change anything in there also?

    Plugin Author simplemaps

    (@simplemaps)

    Loiruca,

    Can you try the images_directory approach and then send a url where you are testing the map to:
    [email protected]
    I should be able to pinpoint the problem.

    Chris

    Thread Starter loiruca

    (@loiruca)

    Hi Mark, thanks for the quick answer. Actually the images_directory approach worked! The reason it didn’t work at first was because I left location_image_source line in the file. Once I deleted it the images showed with no problem ?? Thanks so much for all your help! This is a great map for what I am doing. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Images for location markers not showing’ is closed to new replies.