Question

Add Vector Layer to Open Layers Data Delivery Example

  • 12 April 2020
  • 1 reply
  • 5 views

Badge

Hi All,

Does anyone know how I might add a vector layer to the Open Layers example for data delivery in the FME Server Playground

https://playground.fmeserver.com/javascript/data-delivery/open-layers-integration/

I would like to drop a line feature on top of the Open Layers basemap so users can use it as a reference when they are selecting their area of interest.


1 reply

Badge +9

Hi @smcd84,

This example on the playground: https://playground.fmeserver.com/javascript/data-visualization/open-layers/ shows adding lines from a KML file to an Open Layers map. That example makes a user click a button to load the kml from FME Server's data streaming service, but it could be modified to display any kml file. I believe Open Layers can support other types of data like GeoJSON as well, but it's been a while since I've tried anything with their API.

Reply