Skip to content

BasemapSelectControl

andy.rothwell edited this page Sep 26, 2019 · 4 revisions

BasemapSelectControl

A BasemapSelectControl is a custom widget that can be added to a Leaflet map.

The props that can be passed to a phila-vue-mapping BasemapSelectControl are:

prop description or example
position

In a Vue template

The <basemap-select-control> tag is put inside a <map_> tag:

<map_>
  ...
  <div v-once>
    <basemap-select-control :position="this.basemapSelectControlPosition" />
  </div>
  ...
</map_>

In a Mapboard config file

If using Mapboard, the BasemapSelectControl is automatically included on the map if you include any layers of type "imagery". You can cancel that with the following code in your config:

imagery: {
  enabled: false
},