Accession browser: Map
Depends on genesys-server#303 (closed)
Implement the display of accession localities at https://genesys.demo.genesys-pgr.org/a/map/ based on https://sandbox.genesys-pgr.org/explore/map
- Leaflet map with the world tiles as we use them now
- Add layer of accession localities with filter
Code from map.jsp
layer = L.tileLayer("{s}/explore/tile/{z}/{x}/{y}/" + filterCode, {
attribution: "Accession localities from <a href='<c:url value="${baseUrl}" />'>Genesys PGR</a>",
styleId: 22677,
subdomains: ${cdnServers.serverList}
});
Note: The new TileController from genesys-server#303 (closed) makes tile PNGs available at /acn/tile/{zoom:\\d+}/{x:\\d+}/{y:\\d+}
. This endpoint accepts two query string parameters:
-
f
<-- filterCode -
color
<-- tile color (e.g.#f00ba0
) (optional)
You may need to update the proxy function of Express.