Tribe__Events__Pro__Geo_Loc::scripts()

Enqueue Google Maps Geolocation JS in all archive views if needed: 1) if the “Near” search is present in Tribe Bar (if Hide Location Search is unchecked), 2) if we are rendering Map View


Source

File: src/Tribe/Geo_Loc.php

	public function scripts() {
		if (
			tribe_is_event_query()
			&& ! is_single()
			&& (
				! tribe_get_option( 'hideLocationSearch', false )
				|| tribe_is_map()
			)
		) {
			tribe_asset_enqueue( 'tribe-events-pro-map' );
		}
	}