Is it possible to bring in the Transit Layer from Google Maps into an ArcGIS Online Web Map as an item or something? I see this example script on the Google Developers API site, but I know nothing about JavaScript really, where I would type it , or how to add it to a AGOL web map. We don't manage the transit data but it'd be really helpful to use in web maps or planning resource location analysis.
function initMap() {
const map = new google.maps.Map(document.getElementById("map"), {
zoom: 13,
center: { lat: 51.501904, lng: -0.115871 },
});
const transitLayer = new google.maps.TransitLayer();
transitLayer.setMap(map);
}
window.initMap = initMap;
source: https://developers.google.com/maps/documentation/javascript/examples/layer-transit#maps_layer_transi...
Teresa Blader
Olmsted County GIS Specialist