You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
olData.getMap('mymap').then(function (nativeOl3Map) {
// only return the tile layer
var layers = nativeOl3Map.getLayers();
// show tile layer and principal layer
// Principal layer is what i want but i cant access
var layers = nativeOl3Map.getLayers().getArray();
});
I was trying to getLayer to getSource to addFeatures
I only want add a lot of markers manually to avoid creating many DOM elements (ol-marker), because i think this is slowing down the performance.
I tried to add a native layer manually for test without success too:
How can i access native layers from map?
I was trying to getLayer to getSource to addFeatures
I only want add a lot of markers manually to avoid creating many DOM elements (ol-marker), because i think this is slowing down the performance.
I tried to add a native layer manually for test without success too:
This last example are only to demonstrate the logic, not the real code.
The text was updated successfully, but these errors were encountered: