Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate geolocation demo to google maps api v3 #160

Merged
merged 1 commit into from Jun 15, 2012

Conversation

l-hedgehog
Copy link
Contributor

Google Maps Javascript API v2 is long-deprecated1. This pull request update geolocation-demo.js with its v3 equivalent, with the exception of using v3's default control UI.

@@ -124,6 +124,6 @@ <h4 class="expander-header">How do I turn off Location-Aware Browsing permanentl

</div> <!-- end #main -->

<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=true&amp;key={{ gmap_api_key }}"></script>
<script src="http://maps.googleapis.com/maps/api/js?sensor=true&amp;key={{ gmap_api_key }}"></script>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a protocol-relative URL so that it works over http and https.
src="//maps.googleapis.com"

@rik
Copy link
Contributor

rik commented Jun 14, 2012

Thanks a lot! r+ with this small fix.

@l-hedgehog
Copy link
Contributor Author

Thanks for the review!

The protocol part removed and the branch rebased onto the current master.

rik added a commit that referenced this pull request Jun 15, 2012
migrate geolocation demo to google maps api v3
@rik rik merged commit f83d637 into mozilla:master Jun 15, 2012
@rik
Copy link
Contributor

rik commented Jun 15, 2012

Awesome!

If you're interested, I know this page would love a similar update: https://www.mozilla.org/en-US/about/contact.html

It is in the PHP codebase though. We can discuss this by email (anthony@mozilla.com) or on IRC (#www, I'm Rik).

@l-hedgehog
Copy link
Contributor Author

Hi,

Google Maps API v3 uses different key from v2, ref. An alert can be seen by visiting http://www-dev.allizom.org/en-US/firefox/geolocation/

rik added a commit that referenced this pull request Jul 3, 2012
This reverts commit f83d637, reversing
changes made to 0e33165.
@l-hedgehog l-hedgehog deleted the g-maps-api-v3 branch January 3, 2013 14:30
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.

None yet

2 participants