1- import CoCreateMapAutocomplete from './autocomplete'
2- import CoCreateMapDirection from './direction'
3- import CoCreateMapSearch from './search'
4- import CoCreateMapGetLocation from './location'
1+ import './map.js' ;
2+ import { CoCreateMapAutocomplete } from './autocomplete.js' ;
3+ import { CoCreateMapDirection } from './direction.js' ;
4+ import { CoCreateMapSearch } from './search.js' ;
5+ import { CoCreateMapGetLocation } from './location.js' ;
56/*const CoCreateMapAutocomplete = require('./autocomplete');*/
67
7- // const CoCreateMaps = {
8- // ...CoCreateMapAutocomplete,
9- // ...coCreateMapDirection,
10- // ...coCreateMapGetserach,
11- // ...coCreateMapGetLocation
12- // }
8+ // const loader = new Loader({
9+ // apiKey: "AIzaSyAQsud7vA9plHy7FGIicfQ5IiwtJFIreVg",
10+ // version: "weekly",
11+ // });
1312
13+ // loader.load().then(() => {
14+ // map = new google.maps.Map(document.getElementById("map"), {
15+ // center: { lat: -34.397, lng: 150.644 },
16+ // zoom: 8,
17+ // });
18+ // });
1419
1520function initMapSettings ( ) {
16-
17- console . log ( " ...... " )
1821 var coCreateMapAutocomplete = new CoCreateMapAutocomplete ( ) ;
1922 var coCreateMapDirection = new CoCreateMapDirection ( ) ;
2023 var coCreateMapSearch = new CoCreateMapSearch ( ) ;
2124 var coCreateMapGetLocation = new CoCreateMapGetLocation ( ) ;
2225 initSortableSettings ( coCreateMapGetLocation ) ;
23-
24-
2526}
27+
2628function initSortableSettings ( coCreateMapAutocomplete ) {
2729 var observer = new MutationObserver ( function ( mutations ) {
2830 mutations . forEach ( function ( mutation ) {
@@ -42,4 +44,6 @@ function initSortableSettings(coCreateMapAutocomplete) {
4244 observer . observe ( document . body , config ) ;
4345}
4446
45- export { CoCreateMaps , initMapSettings , initSortableSettings }
47+ window . initMapSettings = initMapSettings ( )
48+
49+ export { initMapSettings , initSortableSettings }
0 commit comments