craftsmancoding / gmarker

Plugin and Snippets for MODX Revo (modx.com). Allows easy creation of maps and markers using Google Maps API.
6 stars 3 forks source link

Implement local image caching for static maps #23

Open fireproofsocks opened 9 years ago

fireproofsocks commented 9 years ago

Basically, we want to have Google generate the static map as desired, then we cache the generated image locally.

See:

Big question is whether we can use the Snappy Maps styles in here: https://developers.google.com/maps/documentation/staticmaps/#StyledMaps

HarveyEV commented 9 years ago

As map styles that are generated from the map styling sites like snazzymaps are nothing but json, I dropped them in a system stetting and call gmarker.map_styles and pulled into props array in the snippet. Then I added a placeholder in the gmarkerhead chunk and done. Simple to do the same for gmaps I guess.

Ill fork it and put my changes in so you can see.

Working on my dev site: http://c0059.paas1.tx.modxcloud.com/highlight-event.html

HarveyEV commented 9 years ago

Nevermind. Just looked at the latest code and see something similar;) GG