map-style.ts 698 B

1234567891011121314151617181920212223242526272829
  1. import * as ol from 'ol'
  2. import * as style from 'ol/style'
  3. import * as layer from 'ol/layer'
  4. import * as source from 'ol/source'
  5. import * as geom from 'ol/geom'
  6. import * as proj from 'ol/proj'
  7. import * as interaction from 'ol/interaction'
  8. import * as extent from "ol/extent";
  9. import * as format from "ol/format";
  10. import { Coordinate } from 'ol/coordinate'
  11. import * as turf from '@turf/turf'
  12. import VideoImg from './22.png'
  13. const videoPointStyle = () => {
  14. const _style = []
  15. const img = VideoImg
  16. _style.push(new style.Style({
  17. image: new style.Icon({
  18. src: `.${img}`,
  19. scale: 1
  20. })
  21. }))
  22. return _style
  23. }
  24. export default {
  25. videoPointStyle,
  26. }