MeanMapAppV2.0 icon indicating copy to clipboard operation
MeanMapAppV2.0 copied to clipboard

Cannot get Map to display

Open tayrembos opened this issue 8 years ago • 4 comments

I have gone through the entire tutorial and all of the information seems to be storing correctly; however, the map does not show up. Is there any common issue as to why this would happen? I followed the tutorial exactly and did not clone your GitHub

tayrembos avatar Mar 31 '17 20:03 tayrembos

+1

I have now been debugging for 3 hours and I can't get the map to display. Granted, I modified the tutorial a lot to fit my needs, but it just shows a blank page. Console does not show any errors. I have a slight guess that something is wrong with the gservice.js, as I can set breakpoints no matter where in there, which won't get called, not sure if this is supposed to be like this or what the default behaviour is with angular.

felixfrtz avatar May 01 '17 21:05 felixfrtz

Same problem here

edtronic avatar May 08 '17 17:05 edtronic

I think it has to do with

app -> confing.js

mongolab:
{
    name: "mongolab",
    url: "mongodb://BigCoder:[email protected]:39817/heroku_cnkn5vpn",
    port: 27017
},

edtronic avatar May 09 '17 16:05 edtronic

Yes, changing:

// Sets the connection to MongoDB
mongoose.connect(database.mongolab.url);

to

// Sets the connection to MongoDB
mongoose.connect(database.local.url);

brought the map on. Alternatively, you can update the mongolab url to your own, if you wanted cloud hosting.

chintanp avatar Jan 07 '18 22:01 chintanp