Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

firebase + OpenSeadragon +Annotorious #49

Open
sgoldrei opened this issue Jun 27, 2024 · 1 comment
Open

firebase + OpenSeadragon +Annotorious #49

sgoldrei opened this issue Jun 27, 2024 · 1 comment

Comments

@sgoldrei
Copy link

sgoldrei commented Jun 27, 2024

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
Copy link

cioran0 commented Jul 20, 2024

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants