cyberhobo / wordpress-geo-mashup

Official repository for Geo Mashup, the plugin that makes WordPress into a GeoCMS. Documentation:
https://github.com/cyberhobo/wordpress-geo-mashup/wiki/Getting-Started
63 stars 15 forks source link

Cannot get Snazzy Maps to work with Geo Mashup #798

Closed mtressl closed 6 years ago

mtressl commented 6 years ago

I tried this with the June 2017 version, and now again with the Jan 01 2018 version. Installed Snazzy Maps, got an API key, selected a Snazzy style. But I can not see the result in my Geo Mashup maps on my Wordpress.

Any hints what I might be missing? Thanks for your help! M.

cyberhobo commented 6 years ago

There isn't much more to it. Note that it's not enough to "save" a snazzy style, you also have to enable it. If you've done that and you can give me a URL with a map that should be using a snazzy style, I'll take a look.

mtressl commented 6 years ago

Here are two URLs which should show Snazzy. If I got it right, every map should be Snazzy, correct?

http://dev.rumstrolchen.com/map/ (bigger one) http://dev.rumstrolchen.com/2015/11/25/gweta-maun/ (smaller one in right side bar)

Sent you a separate email with access data.

cyberhobo commented 6 years ago

Huh, there are no errors and the snazzy maps script is loading. It look like you have map_type="G_SATELLITE_MAP" - what if you get rid of that or change to map_type="G_NORMAL_MAP"?

mtressl commented 6 years ago

Thanks for your feedback! Which map did you look at? On the bigger one I have no parameters set except background_color="FFFFFF". On the small one I have a couple parameters, but map_type="G_HYBRID_MAP" instead the mentioned map_type="G_SATELLITE_MAP". For both, when I put map_type="G_NORMAL_MAP" nothing changes.

mtressl commented 6 years ago

Meanwhile I have disabled any other mapping plugin, still no success.

cyberhobo commented 6 years ago

I still haven't been able to see anything wrong, I may have to look into the snazzy code a little deeper to see what may be going wrong.

mtressl commented 6 years ago

Thanks, looking forward to get your response. If I can help or provide anything, let me know!

cyberhobo commented 6 years ago

Still no luck. If you have any plugins that influence the loading of scripts active you could try deactivating those. Other than that I can't see any difference between your map and a working one.

mtressl commented 6 years ago

From your point of view, what Plugins could that be?

Will check more in detail if I find time.

cyberhobo commented 6 years ago

I would look at optimization/minification plugins first, then other mapping plugins.

mtressl commented 6 years ago

btw, I was not able to find a interfering extension/plugin. So unfortunately no Snazzy maps for me. Not a biggie, since your Geo Mashup is working like a charm! ;-)

cyberhobo commented 6 years ago

It might be worth asking the Snazzy folks if they'd like to look at it - the furthest I could get was to confirm that their code is loading and running, but it's obfuscated and I couldn't tell what was going wrong. Glad Geo Mashup serves your needs at least!