NEU-Libraries / drs-toolkit-wp-plugin

This repository is for the layer of the CERES: Exhibit Toolkit that consumes data from the DRS API and presents it through a Wordpress front end. The primary plugin provides search, browse, and display of items from the DRS.
13 stars 11 forks source link

2 Map Shortcodes are combined into one map on page #184

Open mmwoods2019 opened 5 years ago

mmwoods2019 commented 5 years ago

When exploring #181 I tried adding another map to the same page (dpla map - all settings selected). I created the shortcode and added label colors.

screen shot 2019-02-20 at 1 25 52 pm

When I saved the page and went to view the page, one map is visible with all of the points from both map shortcodes.

screen shot 2019-02-20 at 1 26 31 pm

In theory there should be two separate maps.

patrickmj commented 5 years ago

Thanks! That'll take some research into how Leaflet moves the data around, and how we deliver it. Hopefully, somewhere different IDs for the map containers can be set, and use different data queries. That second part might be a major rewrite of CERES code.