ol-mapbox-style icon indicating copy to clipboard operation
ol-mapbox-style copied to clipboard

Example of using a styled Esri vector tiles basemap (but not as the whole map)

Open michaeladamkatz opened this issue 1 year ago • 1 comments

I see the example

import "ol/ol.css";
import "./styles.css";
import createMap from "ol-mapbox-style";

createMap(
  "map", "https://tiles.arcgis.com/tiles/P3ePLMYs2RVChkJx/arcgis/rest/services/2020_USA_Median_Age/VectorTileServer/resources/styles/root.json"
);

I want to do that but:

(1) I want a basemap that looks like https://www.arcgis.com/apps/mapviewer/index.html?layers=de26a3cf4cc9451298ea173c4b324736

(2) I don't want my map to be just the basemap layer, but to have other OpenLayers layers on it, such as vector layers to draw objects. createMap sounds like it makes a map with just the styled vector tile layer. Can you add other layers to that map?

Is there an example that shows these?

michaeladamkatz avatar Feb 26 '24 09:02 michaeladamkatz