• I want to Add GeoJASON by url in Leafleat map.

    Example of plug in

    [leaflet-map fitbounds scrollwheel]
    [leaflet-geojson src=https://gist.githubusercontent.com/bozdoz/064a7101b95a324e8852fe9381ab9a18/raw/ee100561f5a0a8cf55430e9f2157e4a1e2560a2e/map.geojson]

    I write this shortcode
    leaflet-map fitbounds scrollwheel]
    [leaflet-geojson
    src=https://myfile.geojason /map.geojson]

    does not display any of the myfile.geojason file.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor hupe13

    (@hupe13)

    leaflet-map fitbounds scrollwheel]
    [leaflet-geojson
    src=https://myfile.geojason /map.geojson]

    Are there copy/paste errors or typos?

    [leaflet-map fitbounds scrollwheel]
    [leaflet-geojson src=https://mydomain.tld/geojason/map.geojson]

    should work.

    • This reply was modified 2 years, 9 months ago by hupe13.
    Thread Starter boskos10

    (@boskos10)

    i write this Shortcode

    [leaflet-map fitbounds scrollwheel]
    [leaflet-geojson src=https://pacos.net/upload/India.geojson/map.geojson]

    but dont display india.geojson

    Plugin Contributor hupe13

    (@hupe13)

    https://pacos.net/upload/India.geojson/map.geojson

    Is this URL valid?
    First: The certificate of pacos.net doesn’t match the domain name.
    Second: If I ignore the warning about this, the file doesn’t exist.

    It must be

    [leaflet-map fitbounds scrollwheel]
    [leaflet-geojson src=https://pacos.net/upload/India.geojson]

    But you need a valid certificate.

    Thread Starter boskos10

    (@boskos10)

    OK thank you .

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shortcode Helper for Leafleat map’ is closed to new replies.