• Resolved Anonymous User 15118416

    (@anonymized-15118416)


    Hi.
    I’m trying to load a KML file on localhost but no map is displayed.
    Any suggestion?

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

    (@webaware)

    Kml files need to be hosted somewhere on the Internet where Google can see them. Even Dropbox will do.

    cheers,
    Ross

    Thread Starter Anonymous User 15118416

    (@anonymized-15118416)

    Thank you for the prompt response.
    I did as you had suggested and still not show anything on the map. ??

    Plugin Author webaware

    (@webaware)

    Can you post your shortcode here please? Copy it from your page and paste it here, then select it and click the code button so that it doesn’t get messed up.

    I’ll look at it later (probably much later); am heading out for the day now.

    cheers,
    Ross

    Thread Starter Anonymous User 15118416

    (@anonymized-15118416)

    Hi Ross,
    Once again thank you for your invaluable help.
    This is code:

    [flexiblemap src="https://www.dropbox.com/s/an3vwcm1ps8xcxc/Abi4life_Hotels_Mallorca.kml?dl=0" width="100%" height="400px" zoom="17"]

    This is result:
    https://www.dropbox.com/s/6tiq5lcy3uvw6gz/Capturar_2.PNG?dl=0

    Cheers,
    Marcio

    Plugin Author webaware

    (@webaware)

    G’day Marcio,

    You’ve loaded the map into a private folder, not the Public folder, so DropBox has given you a link that forces the browser to load a DropBox page where you can download the file.

    You can ask DropBox to directly serve the file by changing the ?dl=0 bit to ?dl=1, like this:

    [flexiblemap src="https://www.dropbox.com/s/an3vwcm1ps8xcxc/Abi4life_Hotels_Mallorca.kml?dl=1" width="100%" height="400px" zoom="17"]

    cheers,
    Ross

    • This reply was modified 8 years, 6 months ago by webaware. Reason: fix single quote to code quote
    Thread Starter Anonymous User 15118416

    (@anonymized-15118416)

    Hi Ross.
    You are fantastic!!
    Thank you for your excellent work.
    Success my friend.

    Cheers
    Marcio

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Localhost: Map is not displayed’ is closed to new replies.