www.webdeveloper.com
Results 1 to 2 of 2

Thread: Problem with 2 google maps functions

  1. #1
    Join Date
    Apr 2014
    Posts
    1

    Problem with 2 google maps functions

    Hello everyone!

    I am creating a registation form with autofilling (using a google script) and a distance calculator (using another google script).
    Both of them work on different pages, but as soon as I try to have the 2 in the same page, everything falls apart! (no response from either one...).

    these are the 2 plugin used:

    <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=places"></script>

    <script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAA09qY5o0F96_hLg4YyfFG3xRoIzq7W9kjqpTzBbn7O9wu0Oc8uhR44zTSflabpsk8CmRkpT 3W0E7hSA"></script>

    Any ideas??
    Thanks!!

  2. #2
    Join Date
    Mar 2005
    Location
    Behind you...
    Posts
    1,016
    I've never really worked with Google's map API but it looks like you'll need to work out some way to only include one of the scripts (as they are the same API after all).

    In the browser's developer console Google actually logs a warning message:
    Warning: you have included the Google Maps API multiple times on this page. This may cause unexpected errors.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles