WordPress.org

Forums

Leaflet Maps Marker (Google Maps, OpenStreetMap, Bing Maps)
[resolved] [Plugin: Leaflet Maps Marker] Enabling WMS as a layer that will also show up along comments in KML e (5 posts)

  1. matifbutt
    Member
    Posted 3 years ago #

    Hi Robert,

    My question is how we can embed this type of code in your kml export function, so that when we click on "export as kml in leaflet marker" this code is generated/embeded within the leaflet exported kml file.

    This code is my wmz export as kmz/kml: Which is working fine inside Google earth you can try by saving this file as kml or kmz and open it in Google earth.

    <?xml version="1.0" encoding="UTF-8"?>
    <kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
    <NetworkLink>
    <name>topp:states</name>
    <open>1</open>
    <Url>
    <href>http://216.58.43.167:5050/geoserver/topp/wms?height=1024&width=1024&layers=topp:states&request=GetMap&service=wms&styles=population&format_options=SUPEROVERLAY:false;KMPLACEMARK:false;KMSCORE:40;KMATTR:true;&srs=EPSG:4326&format=application/vnd.google-earth.kmz&transparent=false&version=1.1.1&</href>
    <viewRefreshMode>onStop</viewRefreshMode>
    <viewRefreshTime>1</viewRefreshTime>
    </Url>
    </NetworkLink>
    </kml>

    I think there is a <URL> and <Networklink> Tag which are not generated/handled when we click on the export kml function of leaflet marker, that is why output of the kml is only showing marker but not WMS layer as well(if WMS layer enable before exporting the kml in leaflet marker).

    Regards
    Atif

    http://wordpress.org/extend/plugins/leaflet-maps-marker/

  2. RobertHarm
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Atif,
    thanks for the hint with WMS layers showing in KML via <URL> and <networklink>-tags - didnt know this yet. I will take a look into this and try to include this for v1.5
    Regards,
    Robert

  3. RobertHarm
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Atif,
    WMS export feature has been added to v1.4.3 - details here.
    Regards,
    Robert

  4. matifbutt
    Member
    Posted 3 years ago #

    Great job Robert

    I will check it later today.

    Regards
    Atif

  5. matifbutt
    Member
    Posted 3 years ago #

    Hi Robert

    KML export is working now.

    Regards and Thanks
    Atif

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic