bcgov / dbc-kml-apps

DataBC KML Applications and Templates
Apache License 2.0
0 stars 6 forks source link

Convert geodetic survey monument viewer from mapserver to geoserver #4

Open mraross opened 7 years ago

mraross commented 7 years ago

Convert the geodetic survey monument viewer using two different approaches so we can determine when to use each approach for a given layer in the rest of the KML apps. The initial version of the viewer is in dbc-kml-apps/apps. It has the details network link layer converted using a custom output type called kayml_geodetic_control.

The first approach is to use kml placemark templates (e.g. title.ftl, description.ftl, height.ftl) and styled-layer descriptors to customize the appearance of each layer.

The second approach is to define a custom output type called kayml using an xslt transform.

Whatever the approach used, the new viewer should look like the old one as much as possible.

In each approach, migrating the viewer takes four steps:

  1. Replace each mapserver network link with the appropriate geoserver network link from the BC Web Mapping Library

  2. For each network link that needs to allow a user to click on a placemark to view feature details, customize the network link and associated layer definition in geoserver using one of the approaches listed above.

  3. Update all icon links to use the following production RawGit base urls:

    for geocoder-related icons
         use https://cdn.rawgit.com/bcgov/ols-devkit/df422089/kml/icons/geocoder
    
    for databc logo icon
         use https://cdn.rawgit.com/bcgov/ols-devkit/df422089/kml/icons/DataBC_logo.png

    for all other icons use https://cdn.rawgit.com/bcgov/dbc-kml-apps/62ebb524/kml/icons

Don't change any network links that reference DataBC location services (e.g., geomark, geocoder, geonames)

mraross commented 7 years ago

We are still investigating the use of xslt in this migration project.