ngx-openlayers icon indicating copy to clipboard operation
ngx-openlayers copied to clipboard

Support ArgGIS layers

Open HarelM opened this issue 6 years ago • 4 comments

Would be great if this library can support ArcGIS layers: https://openlayers.org/en/latest/examples/arcgis-tiled.html https://openlayers.org/en/latest/examples/vector-esri.html

HarelM avatar Oct 23 '18 20:10 HarelM

Some of them works with arcgis I think. Nothing about it @kekel87 ?

davinkevin avatar Oct 24 '18 11:10 davinkevin

For now, I just fit localy ImageArcGISRest on my project.

For the vector-esri examples, I adapted the example to Typescript with ViewChild (for performance issues).

For the arcgis-tiled examples, i use aol-source-xyz, as mentioned in the top of the article, for performance reasons. Like this:

<aol-layer-tile>
  <aol-source-xyz url="https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}">
  </aol-source-xyz>
</aol-layer-tile>

kekel87 avatar Oct 25 '18 11:10 kekel87

@kekel87 thanks for the info! I didn't know I could add /tile/... to get xyz tiles :-) Looking at the provided example, how could one use the styles for the vector layer from ArcGIS and use them in Openlayers?

HarelM avatar Oct 25 '18 13:10 HarelM

I have them recreated by hand in a table to make style cache. It allows to adjust them if the customer changes his mind.

I think it's possible to make an Arcgis style converter to Openlayer, but I do not find an Openlayer official solution.

kekel87 avatar Oct 25 '18 13:10 kekel87