Neatline Custom Spatial Layers

Hi,

I'm part of a project that requires historical maps in Neatline. We've found an open-source map that functions much like the default spatial layers included in Neatline, i.e. "Google Satellite" and "Stamen Terrain." Is it possible to add a new spatial layer to this list to act as a base layer for our exhibit? How would we go about including a new spatial layer?

The map I'd like to use can be found here:
http://pelagios.dme.ait.ac.at/maps/greco-roman/

If not, my understanding is that we can import WMS layers hosted in Geoserver into our exhibit. Granted that I can acquire this data, could someone explain in more detail what the implementation process looks like?

Thanks in advance!

I need to do this for a project as well for a project, just haven't gotten to that section of the TODO list yet. Right now the easiest way to do this is you basically need to create a custom theme and use the tile sets described on http://pelagios-project.blogspot.com/2012/09/a-digital-map-of-roman-empire.html.

See http://scholarslab.org/geospatial-and-temporal/theming-neatline-exhibits/ for more on the theme. If I get some time today I'll write the JSON file for the theme. In the mean time, here is the tile pattern for the map tiles from Pelagios:


http://pelagios.dme.ait.ac.at/tilesets/imperium/{z}/{x}/{y}/.png

Wayne

I forgot we made this "easy" now :)

Here's a gist with the json needed:

https://gist.github.com/waynegraham/c7d9ae298e0fe977f0ea

In your theme directory, make a neatline/layers directory and save that JSON file to it. It'll pop up in your layer list under Pelagios in the Exhibit Settings for "Enabled Spatial Layers"

Would love to see what you're working on!

Wayne

I forgot we made this "easy" now :)

Here's a gist with the json needed:

https://gist.github.com/waynegraham/c7d9ae298e0fe977f0ea

In your theme directory, make a neatline/layers directory and save that JSON file to it. It'll pop up in your layer list under Pelagios in the Exhibit Settings for "Enabled Spatial Layers"

Would love to see what you're working on!

Wayne

Hi Wayne,

I'm also very curious about this. Is there further documentation about how to use this feature to add new base layers?

Also, I don't seem to be able to implement this as you described. When I load the JSON file into the folder, it pops up in the Omeka admin page, but then my neatline exhibit page doesn't load.

I notice at the bottom of the page in the Neatline | Browse exhibits that I get the notice (error?):

Notice: Undefined index: id in /home/buckwann/public_html/dancemaps/plugins/Neatline/helpers/Layers.php on line 70

(where "dancemaps" is the name of my Omeka installation)

It seems we also need an "id" attribute?
Though when I add one, following what they look like on the default.json file (found in plugins/Neatline/Layers), the neatline exhibit will load, but the base layer still doesn't.

Any ideas?

Thanks

Documentation is being developed for this, but it looks like there's a bug in it right now. We'll take a look at it.

Wayne

Hi Wayne,

Thank you so much! Your quick fix worked! I can't begin describing how much time this will save.

The map will be part of a long-term undergraduate research project. The project isn't public yet, but it'll be released at the end of the month. I'll post a link here then!

Thanks again for your help!

fivel,

I forgot to include a field needed (id). I updated the gist to reflect this, but it should look like this:


{
"Pelagios": [
{
"title": "Pelagios Digital Map of the Roman Empire",
"id": "pelagios",
"type": "XYZ",
"properties": {
"urls": [
"http://pelagios.dme.ait.ac.at/tilesets/imperium/${z}/${x}/${y}.png"
]
}
}
]
}

Follow-up question for this thread.

We're using the Pelagios map for a main Neatline map exhibit. I followed the suggestions above for adding this layer to a JSON file in a /neatline/layers. It works great.

However, we're also using the NeatlineFeatures plugin to allow users who are adding items to Omeka to plot items on a map, which later feeds into Neatline when we import the records. The problem is that the Pelagios layer doesn't appear as a base layer option on the Coverage map.

Any suggestions on how to add the Pelagios layer to the Coverage map's base layer options?

Hi,

Unfortunately, you've hit up against something that Features doesn't support.

Feel free to file an issue/feature request on the issues page. I'll need to think about the best way to handle it, though. (And I'm not sure when I might get to it off-hand.) I'd really rather have NeatlineFeatures' knowledge of Neatline itself be very limited.

Glad that the other part is working for you, though.