Viewing 3 replies - 1 through 3 (of 3 total)
  • You have to get your own api key from google and change two files just for google map. The image issue i’m still trying to figure out

    MapAdmin.php
    wp-content\plugins\easy2map-photos\includes\MapAdmin.php
    Change line 6 to //maps.googleapis.com/maps/api/js?v=3.exp&sensor=true&key=PUT_YOUR_KEY_HERE&libraries=drawing,places

    Easy2Mapimg.php
    wp-content\plugins\easy2map-photos\includes\Easy2Mapimg.php
    Change line 16 ($src_Easy2MapImgAPI) change to //maps.googleapis.com/maps/api/js?v=3.exp&sensor=true&key=PUT_YOUR_KEY_HERE

    You need to save and refresh your browser because it seem for me that it cached and still show the error but I cleared everything and it seems to be working now.

    I found the problem with the images. Its not putting the extension on the file name when it gets uploaded. So here is an example of a file: IMG0016JPG20160721145329000000_SMALL and it should be IMG0016JPG20160721145329000000_SMALL.jpg

    Ok found the fix for the image issue.

    \wp-content\plugins\easy2map-photos\includes\MapPinImageUpload.php

    Around line 21
    Replace:
    $imageName = preg_replace("/[^A-Za-z0-9 ]/", '', $_FILES["pinimage"]['name']);

    WITH
    $imageName = preg_replace("/[^A-Za-z0-9 ]/", ".", $_FILES["pinimage"]['name']);

    It had single quotes and missing the period. ” and should be “.”

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Pictures and Google Maps doesn't display’ is closed to new replies.