Skip to content

font-awesome #41

Oct 28, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote
<template>
  <ol-map
    :load-tiles-while-animating="true"
    :load-tiles-while-interacting="true"
    style="height: 800px"
  >
    <ol-view
      ref="view"
      :center="[34, 39.13]"
      :zoom="11"
      projection="EPSG:4326"
    />
    <ol-tile-layer>
      <ol-source-osm />
    </ol-tile-layer>

    <ol-vector-layer>
      <ol-source-vector>
        <ol-feature>
          <ol-geom-point :coordinates="[34, 39.13]"></ol-geom-point>
          <ol-style>
            <ol-style-text
              :text="String.fromCodePoint(0xf041)"
              font="900 18px 'Font Awesome 5 Free'"
              textBaseline="bottom"
            >
              <ol-style-fill color="red" />
       …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@optimisticcynic
Comment options

Answer selected by optimisticcynic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants