Yeah, forgot these markers there I realized after getting the video
capture. The time I ordered my bro to take video capture, I did not know
about the issue. Then I made these urls and ask him to test once more but
didn't get the capture. He said mapbox and ol was the fastest, cesium and
leaflet were problematic. But the leaflet one was having different kind of
issue than performance. Although I believe issue is different than the
marker styles; I'll ask him to take another capture of totally empty map as
soon as I can reach him. By the way there is no official documentation that
I could find in ol3 api doc or such place which shows the optimal way to
create markers. Ol3 tips&tricks documents could be helpful somewhere.
I defined style to layer instead of each feature and they are all the same,
there are 800 markers on the map:
var layerStyle = new ol.style.Style({
image: new ol.style.Icon({
anchor: [0.5, 37],
anchorXUnits: 'fraction',
anchorYUnits: 'pixels',
src: './media/image/busstop.png'
})
});
var layerSource = new ol.source.Vector({});
var layer = new ol.layer.Vector({
source: layerSource,
style: layerStyle
});
From that code, I believe ol defines style for layer and caches the style
for each marker. If the problem is anchor position, maybe it should
re-create canvas with right positioning or is this the responsibility of
client?
--
You received this message because you are subscribed to the Google Groups
"OpenLayers Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/openlayers-dev/73018b49-1b3c-46de-a42b-fb770d692b7b%40googlegroups.com.