/**
 * JavaScript for the Google Maps v3 form input in the Semantic Maps extension.
 * @see https://www.mediawiki.org/wiki/Extension:Semantic_Maps
 *
 * @licence GNU GPL v2+
 * @author Jeroen De Dauw <jeroendedauw at gmail dot com>
 */
(function( $ ) {

	$( document ).ready( function() {

		$( '.sminput-googlemaps3' ).each( function() {
			var $this = $( this );

			$this.googlemapsinput(
				$this.attr( 'id' ),
				jQuery.parseJSON( $this.find( 'div.sminputdata' ).text() )
			);
		} );

	} );

})( window.jQuery );