Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add aggregated map page? #10

Open
bondjimbond opened this issue Oct 4, 2016 · 12 comments
Open

Add aggregated map page? #10

bondjimbond opened this issue Oct 4, 2016 · 12 comments

Comments

@bondjimbond
Copy link

Would be neat to generate a page that generates a map of all Islandora objects with location information, with a Solr query.

@mjordan
Copy link
Collaborator

mjordan commented Dec 8, 2016

@bondjimbond yes that would be neat. The simple API that this module uses wouldn't support that, but it sounds like something that could be accomplished using the full Maps API as described in #7.

https://github.com/jyobb/islandora_map_browse already provides this sort of thing, but not using Google Maps.

@whikloj
Copy link
Collaborator

whikloj commented Jul 31, 2017

@bondjimbond this sort of fits in with my collection use case, perhaps we need something along the lines of the hook I am implementing to allow different coordinate systems.

@mjordan
Copy link
Collaborator

mjordan commented Apr 8, 2018

@bondjimbond can you provide more detail? Thanks to @whikloj we now have collection maps that are populated using a Solr query. Are you wanting to be able to use an arbitrary Solr query to create a map (e.g. for a particular place name, etc.)?

@whikloj
Copy link
Collaborator

whikloj commented Apr 9, 2018

@mjordan my reading of @bondjimbond's request here was a request of ALL of the items in your repository on a single map.

I have heard discussion of the same request from my institution, however it would require your items all having some sort of location to ensure they appear on the map or perhaps some sort of mods:hierarchicalGeographic -> coordinate parser.

It would also probably require the use of the marker clustering library to help with keeping the map readable.

But I guess I am not sure what you get at the end, does it give you search results or individual links to resources?

@MarcusBarnes
Copy link

I'd suggest that this use case is outside the scope of Simple Map. There are other mapping modules for Drupal 7 that can be used with an appropriately crafted Solr view to produce what is suggested in @whikloj's comment above.

@whikloj
Copy link
Collaborator

whikloj commented Apr 9, 2018

@MarcusBarnes can you elaborate a bit on this, especially about which modules should be used in favour of this one.

@MarcusBarnes
Copy link

MarcusBarnes commented Apr 9, 2018

Here's an example of what I think you're suggesting from a purely Drupal 7 site. Zoom out and you'll see the clustering. I'll have to ask what the specific Drupal 7 mapping modules are. From my understanding, there's a Solr view that pulls the geo-coordinates, then the mapping module is able to present the results.

My suggestion is that using an appropriately crafted Islandora Solr View query and similar Drupal 7 mapping modules, you should be able to get a similar result (with some work).

@whikloj
Copy link
Collaborator

whikloj commented Apr 9, 2018

This is my guess at the underlying module of the above site.
https://www.drupal.org/project/ip_geoloc

@mjordan
Copy link
Collaborator

mjordan commented Apr 9, 2018

I'm having trouble with large collections. The one I am testing with has 5142 members that have geocoordinates. The map never renders; what is strange is that the server also doesn't time out. Therefore I suspect it's the Javascript that populates the map that hits a wall. I will continue to debug.

I am leaving this comment here since generating a map that has lots of points on it might be problematic. What's the largest map (in terms of points) anyone has encountered?

@whikloj
Copy link
Collaborator

whikloj commented Apr 9, 2018

@mjordan neat I have never tried that many objects, but we should open a new issue as it will be related to a mistake in my cod and not to this request.

@mjordan
Copy link
Collaborator

mjordan commented Apr 9, 2018

@whikloj will do, and try to provide more data.

@mjordan
Copy link
Collaborator

mjordan commented Apr 9, 2018

It's the looping through Solr results with a page size of 20. I changed it to 1000000 (which is the 'rows' value I use when I want all possible records in one query) and the map renders, but only with < 20 points due to the subsequent while loop, I believe. I'll open a ticket later today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants