Skip to content

Commit

Permalink
Remvoe VectorImage
Browse files Browse the repository at this point in the history
  • Loading branch information
louptheron committed Jul 2, 2021
1 parent 8d46561 commit fe5af3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/src/layers/VesselEstimatedPositionLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Layers from '../domain/entities/layers'
import { EstimatedPosition } from '../domain/entities/estimatedPosition'
import { VESSELS_UPDATE_EVENT } from './VesselsLayer'
import { Vessel } from '../domain/entities/vessel'
import VectorImageLayer from 'ol/layer/VectorImage'
import { Vector } from 'ol/layer'

const NOT_FOUND = -1

Expand All @@ -27,7 +27,7 @@ const VesselEstimatedPositionLayer = ({ map }) => {
const [vectorSource] = useState(new VectorSource({
features: []
}))
const [layer] = useState(new VectorImageLayer({
const [layer] = useState(new Vector({
renderBuffer: 7,
className: Layers.VESSEL_ESTIMATED_POSITION.code,
source: vectorSource,
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/layers/VesselsLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
import { Vessel, vesselAndVesselFeatureAreEquals } from '../domain/entities/vessel'
import { getVesselObjectFromFeature } from '../components/vessel_list/dataFormatting'
import getFilteredVessels from '../domain/use_cases/getFilteredVessels'
import VectorImageLayer from 'ol/layer/VectorImage'
import { Vector } from 'ol/layer'

export const VESSELS_UPDATE_EVENT = 'UPDATE'
export const MIN_ZOOM_VESSEL_LABELS = 8
Expand Down Expand Up @@ -50,7 +50,7 @@ const VesselsLayer = ({ map }) => {
const [vectorSource] = useState(new VectorSource({
features: []
}))
const [layer] = useState(new VectorImageLayer({
const [layer] = useState(new Vector({
renderBuffer: 7,
className: Layers.VESSELS.code,
source: vectorSource,
Expand Down

0 comments on commit fe5af3d

Please sign in to comment.