Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export packages in child path #331

Open
d-koppenhagen opened this issue Apr 12, 2024 · 0 comments
Open

Export packages in child path #331

d-koppenhagen opened this issue Apr 12, 2024 · 0 comments
Labels

Comments

@d-koppenhagen
Copy link
Collaborator

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>
@d-koppenhagen d-koppenhagen added help wanted Extra attention is needed enhancement New feature or request contribution welcome and removed help wanted Extra attention is needed labels Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant