Skip to content

Export packages in child path #331

Open
@d-koppenhagen

Description

@d-koppenhagen

Currently we have to:

<script setup lang="ts">
import { Map, Layers, Sources } from 'vue3-openlayers'
</script>

<template>
  <Map.OlMap style="min-width: 400px; min-height: 400px">
    <Map.OlView :center="[40, 40]" :zoom="5" projection="EPSG:4326" />
    <Layers.OlTileLayer>
      <Sources.OlSourceOSM />
    </Layers.OlTileLayer>
  </Map.OlMap>
</template>

It should be siplified like this:

<script setup lang="ts">
import { OlMap, OlView } from 'vue3-openlayers/Map'
import { OlTileLayer } from 'vue3-openlayers/Layers'
import { OlSourceOSM } from 'vue3-openlayers/Sources'
</script>

<template>
  <OlMap style="min-width: 400px; min-height: 400px">
    <OlView :center="[40, 40]" :zoom="5" projection="EPSG:4326" />
    <OlTileLayer>
      <OlSourceOSM />
    </OlTileLayer>
  </OlMap>
</template>

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions