Hi Brett, here is a working GeoServer WMS that I have in one of my own projects: https://github.com/legiongis/fpan/blob/master/fpan/fixtures/1919-coastal-map.json. This is a Django fixture <https://docs.djangoproject.com/en/3.2/howto/initial-data/#providing-data-with-fixtures>, which I've found to be a very clean way to store map layers for upload (you can see some other examples in that repo).
Just comparing that one to yours, I think you'll at least need to change your "type" to "raster" in the source. Good luck! These are all examples that should get into the https://github.com/archesproject/arches-map-layers repo when we can actually update it... Adam On Mon, Mar 29, 2021 at 3:28 PM Brett Ferguson <[email protected]> wrote: > I've been trying to add a WMS vector overlay to our Arches project, and I > seem to have all the linkages working, however nothing is showing up on the > map. > > I've defined the Map Source as follows in the <base_url>/admin/models > page: > > {"type": "vector", "tiles": [" > https://openmaps.gov.bc.ca/geo/pub/WHSE_ARCHAEOLOGY.RAAD_BORDENGRID/ows?bbox={bbox-epsg-3857}&format=pbf&styles=4157&transparent=false&service=WMS&version=1.3.0&request=GetMap&srs=EPSG:3857&width=512&height=512&layers=pub:WHSE_ARCHAEOLOGY.RAAD_BORDENGRID"], > "tileSize": 512} > > and the Map Layer as: > > [{"id": "borden-grid", "type": "fill", "source": "Borden Grid", > "source-layer": "pub:WHSE_ARCHAEOLOGY.RAAD_BORDENGRID"}] > > with a few different types (fill, line, fill-extrusion), but nothing shows > up on the map. I can see the WMS URL being called from Arches (eg > https://openmaps.gov.bc.ca/geo/pub/WHSE_ARCHAEOLOGY.RAAD_BORDENGRID/ows?bbox=-13658379.710221574,6261721.357121639,-13619243.951739565,6300857.115603648&format=pbf&styles=4157&transparent=false&service=WMS&version=1.3.0&request=GetMap&srs=EPSG:3857&width=512&height=512&layers=pub:WHSE_ARCHAEOLOGY.RAAD_BORDENGRID > ) and verified with ogrinfo that the pbf file returned by the WMS endpoint > is valid with a number of Polygon objects in it, but without effect on the > search map. > > I'm not seeing any exceptions in the browser console other than "The > operation is insecure" which looks like the source code location is a GUID. > Although the Access-Control-Allow-Origin is set to null in the header, I'm > not seeing an CORS errors that I would normally expect to see in the > browser console if that was an issue. > > Just wondering if I'm missing something here, and if there is a good way > to trace down why nothing is showing up on the map. > > Many thanks, > > Brett > > -- > -- To post, send email to [email protected]. To unsubscribe, > send email to [email protected]. For more > information, visit https://groups.google.com/d/forum/archesproject?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Arches Project" 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/archesproject/d015d683-fdef-4c24-90d0-f20e46097c5bn%40googlegroups.com > <https://groups.google.com/d/msgid/archesproject/d015d683-fdef-4c24-90d0-f20e46097c5bn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- -- To post, send email to [email protected]. To unsubscribe, send email to [email protected]. For more information, visit https://groups.google.com/d/forum/archesproject?hl=en --- You received this message because you are subscribed to the Google Groups "Arches Project" 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/archesproject/CAGYBTasg_%2B6hh3y7P8J2FZUBsNJjcNwrot%3DXyRSqeZHrRCMYWg%40mail.gmail.com.
