Comments (4)
This is probably happening because the map coordinates are being loaded from Pleiades each time the page is loaded. If this is the case, one solution is to look up coordinates when inscriptions are being indexed - this would require a change to the solr xsl and a change to the search page code.
from iip-production.
I've made a few minor changes to the mapsearch.js
script running on dlib
. It should be a little faster, especially on slower connections. https://dlibwwwcit.services.brown.edu/iip/mapsearch/
from iip-production.
The query that's used to build the map just gives Pleiades URLs and counts for each. It's not looking at item-level details, so it wouldn't get any Pleiades data we index in Solr. If we want to limit the number of queries, we could download the Pleiades data and build a simple API that takes a list of Pleiades IDs and returns geodata for all of them in a single request.
I think my pull request above has the highest improvement:effort ratio we can manage here. For anything else, I'd probably have to refactor or rewrite large chunks of the map script. I could remove a lot of the code smell, but I don't know how much the end user would notice.
from iip-production.
Actually it looks like there are multiple steps in building the map. The bit that creates the map markers uses the location name and region from Solr for the first search result in that location. That still doesn't have to happen when originally setting up the page and should probably be put off until the user clicks on a circle on the map.
I've spent this morning looking at the script and I think I was right yesterday--the code is spaghetti-ish enough it'd probably be easier to rewrite than to make more improvements.
from iip-production.
Related Issues (20)
- doubletree url not working on deploy-servers HOT 1
- default noimage.jpg being loaded from old repository (2hrs?) HOT 1
- small map tiles also not working
- images not showing up as expected (3days?) HOT 16
- new iso language codes (2 hrs) HOT 19
- doubletree url not working HOT 1
- Existence of an orphan seems to break search page HOT 1
- invalid view-inscription should return a 404.
- wordlist cleanup HOT 2
- Word lists should not display words that are numbers HOT 1
- word segmentation and lemmatization should ignore <orig> when it's alone HOT 2
- Figure out what we are doing with MapBox and if there is a better option HOT 2
- IIP search isn't working. It always returns all files HOT 6
- rationalize django directory structure
- New back-end/update app for IIP and USEP
- Create separate script to add IDs to the elements in the divs that have word segmentation HOT 3
- Modify python word segmentation script so that it handles <div>s with @textParts HOT 1
- CSS change not working in dev branch HOT 5
- Make Word Lists work with new Latin data HOT 6
- API calls going to old IIP site
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iip-production.