annotorious / annotorious-v2-plugins

Plugins compatible with the RecogitoJS, Annotorious and AnnotoriousOSD annotation libraries
BSD 3-Clause "New" or "Revised" License
28 stars 20 forks source link

firebase + OpenSeadragon +Annotorious #49

Open sgoldrei opened 3 weeks ago

sgoldrei commented 3 weeks ago

How did I mess this up ?

var viewer = OpenSeadragon({
            id: 'map'
            , prefixUrl: 'images/'
            , tileSources: 'foo.dzi'
        });

        var anno = OpenSeadragon.Annotorious(viewer);

        var firebaseConfig = {
        apiKey:        "foobar",
        authDomain:    "foobar.firebaseapp.com",
        databaseURL:   "https://foobar-default-rtdb.firebaseio.com",
        projectId:     "foobar",
        storageBucket: "foobar.appspot.com",
        messagingSenderId: "foobar",
        appId: "1:0000000:web:000000"
        };

        var settings = {
            annotationTarget: viewer.src,  // mandatory
            collectionName: 'annotations' // optional (default = 'annotations')
        }

        recogito.FirebaseStorage(anno, firebaseConfig, settings);

error is: ReferenceError: Can't find variable: firebase

error is on line 29: firebase.initializeApp(e);

cioran0 commented 3 days ago

Getting the same thing, think they initialize differently. You figure it out?

I'm sick of watching firebase videos since their versioning makes no sense and re-writing this in supabase atm