<commit_before>import './common.js';
import LuxMap from '../src/map.js';

var map = new LuxMap({
  target: 'mapContainer',
  bgLayer: 'topo_bw_jpeg',
  zoom: 18,
  position: [75977, 75099 ]
});

var cadastreFeature = new ol.Feature({
  geometry: new ol.geom.Point(ol.proj.transform([75977, 75099], 'EPSG:2169', 'EPSG:3857')),
  name: 'Cadastre'
});
var iconStyle = new ol.style.Style({
  image: new ol.style.Icon(({
    anchor: [0.5, 46],
    anchorXUnits: 'fraction',
    anchorYUnits: 'pixels',
    src: 'lion.png'
  }))
});
cadastreFeature.setStyle(iconStyle);
var vectorSource = new ol.source.Vector({
    features: [cadastreFeature]
});
var vectorLayer = new ol.layer.Vector({
    source: vectorSource
});
<commit_msg>refactor(example): update ol example with es6 imports<commit_after>import './common.js';
import LuxMap from '../src/map.js';
import Style from 'ol/style/Style';
import Icon from 'ol/style/Icon';
import Feature from 'ol/Feature';
import Point from 'ol/geom/Point';
import {transform} from 'ol/proj';
import VectorSource from 'ol/source/Vector';
import VectorLayer from 'ol/layer/Vector';

var map = new LuxMap({
  target: 'mapContainer',
  bgLayer: 'topo_bw_jpeg',
  zoom: 18,
  position: [75977, 75099]
});

var cadastreFeature = new Feature({
  geometry: new Point(transform([75977, 75099], 'EPSG:2169', 'EPSG:3857')),
  name: 'Cadastre'
});
var iconStyle = new Style({
  image: new Icon(({
    anchor: [0.5, 46],
    anchorXUnits: 'fraction',
    anchorYUnits: 'pixels',
    src: 'lion.png'
  }))
});
cadastreFeature.setStyle(iconStyle);
var vectorSource = new VectorSource({
    features: [cadastreFeature]
});
var vectorLayer = new VectorLayer({
    source: vectorSource
});

{'fraction_non_alphanumeric': 0.16392479435957696, 'fraction_numerical': 0.04054054054054054, 'mean_word_length': 4.511326860841424, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6594831', 'n_tokens_mistral': 655, 'n_tokens_neox': 600, 'n_words': 154}