How do I force a Google map with label visibility off?

370 views
Skip to first unread message

dhinostroza

unread,
May 16, 2017, 9:43:11 AM5/16/17
to SIMILE Widgets
Hi,
I want to show a map of London without current Google Maps labels to demonstrate the relation between deaths due to Cholera and the location of water pumps (John Snow, 1854).
You can see the 3.1.2rc2 exhibit running in the following URL:

I tried to load a static map from 1854 but that requires quite a bit of tweaking with the geometry.  That piece of code within the page is commented out.
An example with a Google static map is here:

Any help will be highly appreciated.

Very kind regards,
Daniel

Luis Miguel Morillas

unread,
May 17, 2017, 1:47:50 AM5/17/17
to simile-...@googlegroups.com
Hi, Daniel,

Use an specific map constructor[1] with the style you need [2]

Tell us if you need an example.


[1] data-ex-map-constructor atribute in your map definition
[2] https://developers.google.com/maps/documentation/javascript/style-reference

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.

Luis Miguel Morillas

unread,
May 17, 2017, 11:33:32 AM5/17/17
to simile-...@googlegroups.com
Daniel take a look at https://github.com/lmorillas/colera Is it what
you need? It should work at https://lmorillas.github.io/colera/ but
simile-exhibit certificate expired.
Saludos,

-- luismiguel (@lmorillas)

dhinostroza

unread,
May 17, 2017, 3:02:22 PM5/17/17
to SIMILE Widgets
Hola Luis:
Thanks.  I included your code but it didn't change the poi visibility.  Here is my test with your code:
I also tweaked the exhibit map extension js (adding service=openlayers), which cleans up the labels a tiny bit:
I'm still trying variations as per your suggestions with the map constructor.  Any suggestion why the label visibility is still on?
Abrazo desde la línea imaginaria,
Daniel

dhinostroza

unread,
May 17, 2017, 3:07:24 PM5/17/17
to SIMILE Widgets
Sorry, I posted too soon.  Initially https://lmorillas.github.io/colera/ didn't load when I fist tested it but it's working now.  Yes, that's exactly what I need.
Yet, I can't make it work on 
though.
Best,
Daniel

On Wednesday, May 17, 2017 at 10:33:32 AM UTC-5, Luis Miguel Morillas wrote:

Luis Miguel Morillas

unread,
May 17, 2017, 4:02:42 PM5/17/17
to simile-...@googlegroups.com
Hi, Daniel

Happy it's the map you need. It should work with you example with few
modifications:

* Exhibit 3 maps don't support openlayers, but only google maps for now.
* Google maps require an api key (In the example I'm using the one of
the exhibit repo only for tesging)
* You should use exhibit 3 syntax (data-ex- ) and not exhibit 2 syntax (ex: )

See the example now https://lmorillas.github.io/colera/

Un abrazo, Daniel


-- luismiguel (@lmorillas)
Reply all
Reply to author
Forward
0 new messages