Other maps than google-maps

170 views
Skip to first unread message

Luis Miguel Morillas

unread,
Sep 19, 2016, 3:23:59 AM9/19/16
to simile-...@googlegroups.com
Hi all

What's the reason exhibit 3 only supports Google Maps? An easy maintenance?

Could it be interesting to work integrating osm, leaflet or other?


Best,

-- luismiguel (@lmorillas)

Jay Gray

unread,
Nov 14, 2016, 5:15:33 AM11/14/16
to SIMILE Widgets
Hey Luis

May I ask you about your use of Google Maps?
We've looked at your map and timeline with the data type "Ciências, Artes e Humanidades"
That Exhibit contains 117 items

You use:

href=" http://api.simile-widgets.org/exhibit/3.1.0rc/extensions/map/map-extension.js?service=google2&gmapKey=ABQIAAAA5JLLfCE9c7HAtg25QM2KCRRyiP6mHEsQpwvxB19-hS9Kgd8RYhSXEtJVAXDUCZPqwtZZi7-HUYUYrw"

We can't load your map using the string: "service=google2&gmapKey=YOUR-ID"

If you used the latest Exhibit lib:

<script rel='exhibit-extension' type='text/javascript' src='https://api.simile-widgets.org/exhibit/HEAD/extensions/map/map-extension.js'></script>

how would you assign your gmapKey to "../map-extension.js"?
Can you implement an update that runs in Chrome?

Thanks for your help here.

/jay

Luis Miguel Morillas

unread,
Nov 14, 2016, 5:50:05 AM11/14/16
to simile-...@googlegroups.com
Hi, Jay,

What map are you talking about? Is it mine?

I think you are mixing exhibit2 and exhibit3 code.

Saludos,

-- luismiguel (@lmorillas)
> --
> You received this message because you are subscribed to the Google Groups
> "SIMILE Widgets" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to simile-widget...@googlegroups.com.
> To post to this group, send email to simile-...@googlegroups.com.
> Visit this group at https://groups.google.com/group/simile-widgets.
> For more options, visit https://groups.google.com/d/optout.

Jay Gray

unread,
Nov 14, 2016, 6:41:58 AM11/14/16
to SIMILE Widgets
Yes, Luis, it is your Exhibit.
You original used Exhibit 2; we have not updated it, although have learned from it.
The reason I featured it in this post is because it uses your Gmap ID.
While it may work for you (because Google "grandfathered existing sites that do not use a Gmap ID), it does not work on our IP address.

We've encountered what may be a conflict between the Exhibit 3 method of loading a Google Map ID and the Google Processor. We described it here:
https://groups.google.com/forum/#!topic/simile-widgets/_SXCaMfLi7g

Google changed their policies on June 22. See discussion here:
  https://churchthemes.com/page-didnt-load-google-maps-correctly/

So my question to you is:
How do you assign your Gmap ID to an Exhibit 3 "../map-extension.js" and have it correctly processed by Google (where you can verify in Google Chrome dev tools that it has been properly parsed)?

Perhaps we should be using:
  https://api.simile-widgets.org/exhibit/HEAD/extensions/map/scripts/google-maps-v2-view.js

My thought was to ask you to 'debug' is issue because you have successfully used the Gmap ID in the past.
Would you be willing to update one of your Exhibits that use Google Maps, apply your Google MAP API Key, and show use an implementation that works?

We'll then use your implementation, replace your API key with ours, and test it.

FYI, the Chrome platform basically requires HTTPS:
All Exhibit libraries are HTTPS active, but you may also have to update your Bootstrap libraries.

Tell me if I need to do something to help with your testing.

Many thanks for your continuing help.

/jay

David Karger

unread,
Nov 14, 2016, 7:28:04 AM11/14/16
to simile-...@googlegroups.com

Instead of adding a ?gmapkey parameter to the url, use the data-ex-apikey attribute in the tag where you load the extention.

Jay Gray

unread,
Nov 14, 2016, 7:38:26 AM11/14/16
to SIMILE Widgets
Thanks for the suggestion David.
Would you point me to the documentation?
We'll test it and report back.
The Google changes are breaking many folks' maps - we need to get our Exhibit maps back online.
Our problems began when we changed our domain name, and the Google Maps 'grandfathering' no longer applied.

/jay

Jay Gray

unread,
Nov 14, 2016, 8:39:27 AM11/14/16
to SIMILE Widgets

David Karger

unread,
Nov 14, 2016, 9:04:46 AM11/14/16
to simile-...@googlegroups.com

Jay Gray

unread,
Nov 14, 2016, 12:06:31 PM11/14/16
to SIMILE Widgets

Hi David

We cannot get the approach using data-ex-apikey='OUR-KEY' to work.

We have a version of Italian Soccer that uses 'data.json' rather than:
  http://www.simile-widgets.org/exhibit3/examples/other-versions/HEAD/italian-soccer/italianSoccer.txt

The 'data.json' version works perfectly.

We are running an HTTPS environment (https://domain.io)
Because the 'italianSoccer.txt' file is not served using CORS, we can't load it.

We are using these libraries:
<script type='text/javascript'  src='https://api.simile-widgets.org/exhibit/HEAD/exhibit-api.js'></script>

<script rel='exhibit-extension' type='text/javascript'  src='https://api.simile-widgets.org/exhibit/HEAD/extensions/map/map-extension.js'></script>

For example, the 'Thumbnail View' and the 'Table View' work as expected.

Then, after the core libraries, we load:
<link rel='exhibit-extension' href='https://api.simile-widgets.org/exhibit/HEAD/extensions/map/map-extension.js' data-ex-apikey='OUR-KEY' />

The instance hangs. It's not just that the map does not load; the instance is jammed.

When we enclose the '
data-ex-apikey' script in comments, the instance re-loads correctly; Thumbnail View and the Table View work as expected.

In Chrome Developer Tools, the only message we receive is:
  Google Maps API error: MissingKeyMapError
  js?callback=Exhibit.MapExtension.gmapCallback:37
  https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error

The next approach DOES work in non-Exhibit apps:
<script async defer src='https://maps.googleapis.com/maps/api/js?key=OUR-KEY&callback=initMap'></script>

For example, we have several geoJSON maps that run correctly using 'OUR-KEY' above.

Can you help us out with getting either of the gmapKey methods to work with HTTPS?
Many thanks.

/jay

David Karger

unread,
Nov 14, 2016, 12:54:53 PM11/14/16
to simile-...@googlegroups.com

Jim, trying to load data from a different site seems asking for trouble (exhibit's never been particularly good at that); does it work if you link to your own local copy of the data?

Jay Gray

unread,
Nov 14, 2016, 2:13:48 PM11/14/16
to SIMILE Widgets

All local-host implementations work (i.e. C: or D: on Win-10), David.

But none of the remote-host/server implementations works.

If we don't use the "..data-ex-apikey=OUR-KEY" technique, the app works but Google will not load the map.
For example, the non-map views of Italian soccer load correctly and behave as expected.

If we do use the "..data-ex-apikey=OUR-KEY" technique, the app locks up; nothing loads (no facets, text, non-map views, etc.).

To reiterate, we're running HTTPS under nginx.
Our thinking is that it's an HTTPS-related issue.

/jay

Luis Miguel Morillas

unread,
Nov 14, 2016, 4:16:14 PM11/14/16
to simile-...@googlegroups.com
Hmmmm Is your page online, Jay?


Saludos,

-- luismiguel (@lmorillas)

David Karger

unread,
Nov 17, 2016, 9:13:38 AM11/17/16
to simile-...@googlegroups.com

Jay, it's really difficult to diagnose these things without access to examples.  If you can put something on the web, it's more likely someone can solve it.

Luis Miguel Morillas

unread,
Nov 17, 2016, 9:20:03 AM11/17/16
to simile-...@googlegroups.com
David, what about my initial question? Would it be interesting to have
more maps than google maps? There are a lot of users that prefer other
maps.


Saludos,

-- luismiguel (@lmorillas)

David Karger

unread,
Nov 17, 2016, 9:22:10 AM11/17/16
to simile-...@googlegroups.com
Hi Luis. Yes, a long time ago exhibit also supporter osm, but we
haven't had the manpower to maintain that. We're always happy to accept
code contributions!

Jay Gray

unread,
Nov 21, 2016, 5:54:23 AM11/21/16
to SIMILE Widgets

David and Luis - thanks for offering guidance/assistance here.

Per David's advice, the 'data-ex-apikey' technique now works.

However, we had to take two actions, which I'll share with readers.

1. make a server change. On the server side (nginx), we previously allowed only HTTPS urls. We relaxed that rule to also allow HTTP urls (which we also had to do to support SPARQL queries).

2 the Google MAP API assignment has to be the LAST Exhibit library to load. In our case, if it's not the last, Google Maps will not load.

Thanks again David and Luis for helping here.

/jay

Drew

unread,
May 3, 2018, 12:30:06 PM5/3/18
to SIMILE Widgets
Giving this a bump.

Are there any working examples of using Simile Exhibit 3 with OSM? Given the recent announcement from Google regarding the licence and price changes this will likely prove more interesting.

David Karger

unread,
May 3, 2018, 1:31:28 PM5/3/18
to simile-...@googlegroups.com
I actually just got an email from google about the new license; it
stated that the default $200/month free will be sufficient for exhibit's
current use.

Luis Miguel Morillas

unread,
May 3, 2018, 2:55:36 PM5/3/18
to simile-...@googlegroups.com
I don't like google conditions very much. I want to write a fork
including osm if I have time next months.
Saludos,

-- luismiguel (@lmorillas)

Luis Miguel Morillas

unread,
May 4, 2018, 2:38:00 AM5/4/18
to simile-...@googlegroups.com
If I understand ok you must give Google your VISA number card if you
want to get the $200/month free. Too many restrictions for open
resources I think.

Saludos,

-- luismiguel (@lmorillas)

dhinostroza

unread,
May 4, 2018, 9:00:58 AM5/4/18
to SIMILE Widgets
Hi,
See http://www.cerebroperiferico.com/projects/geosalud/
The main page is Simile Exhibit and the links to detail are Fiddle + Leaflet + OSM.
All the very best,
Daniel

Drew

unread,
May 4, 2018, 11:31:40 AM5/4/18
to SIMILE Widgets
Thanks Daniel. As near as I can see, however, though the detail pages utilize OSM and Leaflet, they are not in the context of Simile Exhibit.

What I'd like to have as an option is rendering, within SimEx3, the base map from OSM vs Google.

Luis Miguel Morillas

unread,
May 4, 2018, 1:21:32 PM5/4/18
to simile-...@googlegroups.com
Yes, for now Exhibit3 only supports google maps. The others (osm
based) can't use the exhibit resources (database, facets ...)

Saludos,

-- luismiguel (@lmorillas)

dhinostroza

unread,
May 5, 2018, 2:10:42 AM5/5/18
to SIMILE Widgets
Yes, I'd also be interested in a migration from Google to OSM.  The site integrates both as far as possible.
Best,
Daniel

jjon

unread,
Nov 4, 2018, 3:01:59 PM11/4/18
to SIMILE Widgets


On Thursday, May 3, 2018 at 11:55:36 AM UTC-7, Luis Miguel Morillas wrote:
I don't like google conditions very much. I want to write a fork
including osm if I have time next months.
Saludos,


If you do make a fork for this, do let me know. I'd like to help if I can.

J
Reply all
Reply to author
Forward
0 new messages