View source: R/bcdc-web-services.R
bcdc_preview | R Documentation |
Note this does not return the actual map features, rather opens an image preview of the layer in a Leaflet map window
bcdc_preview(record)
record |
either a It is advised to use the permanent ID for a record or the BCGW name rather than the
human-readable name to guard against future name changes of the record.
If you use the human-readable name a warning will be issued once per
session. You can silence these warnings altogether by setting an option:
|
try(
bcdc_preview("regional-districts-legally-defined-administrative-areas-of-bc")
)
try(
bcdc_preview("water-reservations-points")
)
# Using BCGW name
try(
bcdc_preview("WHSE_LEGAL_ADMIN_BOUNDARIES.ABMS_REGIONAL_DISTRICTS_SP")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.