display country names on a simple vl-layer-vector
See original GitHub issueI need to have the country names on a simple vector layer:
<vl-map :load-tiles-while-animating="true" :load-tiles-while-interacting="true">
<vl-view :zoom.sync="zoom" :center.sync="center" :rotation.sync="rotation"></vl-view>
<vl-layer-vector>
<vl-style-box>
<vl-style-stroke color="#ededf1"></vl-style-stroke>
</vl-style-box>
<vl-source-vector url="https://openlayers.org/en/latest/examples/data/geojson/countries.geojson"></vl-source-vector>
</vl-layer-vector>
</vl-map>
I need to add an extra layer? any other way to do it?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Displaying specific country into map using countries.geojson ...
Use a ol.StyleFunction() and get the name (or any other - depending on the source) attribute of the feature. E.g.: // vector layer...
Read more >Update country names and borders in example #12940 - GitHub
In the OpenLayers example Image Vector Layer, Cyprus, the island, appears divided to two countries, Cyprus and Northern Cyprus, ...
Read more >World Countries - Overview
World Countries represents detailed boundaries for the countries of ... names and country code, along with continent, and display fields.
Read more >Vector Layer - OpenLayers
The countries are loaded from a GeoJSON file. Information about countries is shown on hover and click. main.js.
Read more >How to create a countries map with your own data
This tutorial shows how to Join MapTiler Countries with your own custom data and make a choropleth map.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.