Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AMD version of Google Maps V3 for use with require.js?

Has anybody used Googlemaps V3 with something like require.js where it needs to be in AMD version? Is there one already done somewhere?

like image 716
Dane W Avatar asked Sep 28 '12 23:09

Dane W


People also ask

Is Google Maps API no longer free?

You won't be charged until your usage exceeds $200 in a month. Note that the Maps Embed API, Maps SDK for Android, and Maps SDK for iOS currently have no usage limits and are at no charge (usage of the API or SDKs is not applied against your $200 monthly credit).

Is Google Maps API free for commercial use?

All Maps Embed API requests are available at no charge with unlimited usage.

What is RequireJS used for?

RequireJS is a JavaScript library and file loader which manages the dependencies between JavaScript files and in modular programming. It also helps to improve the speed and quality of the code.

Does Google Maps have APIs?

The Google Maps Platform is a set of APIs and SDKs that allows developers to embed Google Maps into mobile apps and web pages, or to retrieve data from Google Maps.


1 Answers

In require.js you can use the async plugin, then call it like such:

define([
    'async!http://maps.google.com/maps/api/js?sensor=false'
], function(){
    //Create your map.
});
like image 129
puckhead Avatar answered Oct 20 '22 17:10

puckhead