1. Lee Kelleher
  2. Google Maps for Umbraco

Pull requests

#3 Merged
Repository
Deleted repository
Branch
default (e426032c9294)
Repository
Google Maps for Umbraco
Branch
default

fix to allow multiple maps on a single page

Author
  1. Sam Moore
Reviewers
Description

I originally added a hack to the document.ready function that prevented the google maps api from being loaded more than once. but this was just a band-aid for the fact that the SingleLocation.js file was being included n times where n was the number of maps on your DocType. I replaced that band-aid by changing the include of the resource files to use ClientDependency instead of the tag injection method that was being used previously. I tested this on 4.7.1 and 4.7.0, and it worked perfectly with 1, 2, 3, and 4 maps on a single DocType.

  • Learn about pull requests

Comments (0)