Skip to content

Google Maps API V3 integration and fixed mixed content warning for SSL only sites#1

Open
jarvelov wants to merge 3 commits into
kristarella:masterfrom
jarvelov:master
Open

Google Maps API V3 integration and fixed mixed content warning for SSL only sites#1
jarvelov wants to merge 3 commits into
kristarella:masterfrom
jarvelov:master

Conversation

@jarvelov
Copy link
Copy Markdown

Hey!

To begin with, this plugin is really awesome so I've updated it with an option to display a non-static google map using Google Maps API V3 to be able to navigate around the map, zoom and change map type.

Working example here: Link

show="location" is used here to only display the map.
I've reused the settings for zoom, map height/width as well as the $geo_pretty_coords variable.

Also I've made the plugin enqueue the script/styles files using plugins_url() instead of the WP_PLUGIN_URL constant to serve files using the correct protocol used by the site, otherwise a mixed content warning was shown on SSL only sites. The static map option uses a protocol agnostic URL now, to ensure that SSL is used when needed.

@kristarella
Copy link
Copy Markdown
Owner

Thank you! This is great. I had a change to make the static map and link agnostic in my uncommitted version as well as a couple of other changes. I still need to review the maps js method and merge.

@jarvelov
Copy link
Copy Markdown
Author

Hey cool! Saw the update and the protocol agnostic changes are very welcome! Give me a shout if you find any bugs or unexpected behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants