Murali
Posts: 0
Joined: Mon Jan 26, 2015 2:01 pm

Uncaught TypeError: Cannot read property 'getBounds' of null

referencing any external javascript resources or libraries?

Lee Kraus
Posts: 0
Joined: Mon Jan 05, 2015 12:54 am

Uncaught TypeError: Cannot read property 'getBounds' of null

not that I am aware of...

Murali
Posts: 0
Joined: Mon Jan 26, 2015 2:01 pm

Uncaught TypeError: Cannot read property 'getBounds' of null

Backup your JS files and then try deleting the JS files one by one, till you don't see the error. At least you can figure out which file is causing the problem. From then you can troubleshoot. As I don't have the source I can only make certain assumptions.

P.N: DO NOT DELETE THE JS FILES WITHOUT TAKING A BACKUP

I think that the problem is being caused by one of the below reasons

a reference to a null / invalid / non-existent object

referring to an object before it is properly initialised.

some incorrect map size / dimensions

Joe Sharples
Posts: 0
Joined: Mon Aug 18, 2014 1:31 pm

Uncaught TypeError: Cannot read property 'getBounds' of null

Hi Murali,

Thank you for the response.

I backed up and deleted all the JS files, removed all services from being invoked, and removed all page show/load events.

and still received the error.

I deleted the map component and tested the app, i received no error.

I added a new map component and made no changes to it at all, I received the error again when I tested it.

I also created a new page and added a map component, this how ever showed no error.

I need the map component on the original page. I have considered rebuilding the page but this may take days. Plus it would be good to understand what is causing this error

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Uncaught TypeError: Cannot read property 'getBounds' of null

Hello,

1) How do you use you map component ?
2) Your error probably is caused by lack of some parameter. So the Google map component can not find where to center map, because there is no markers or default position

Joe Sharples
Posts: 0
Joined: Mon Aug 18, 2014 1:31 pm

Uncaught TypeError: Cannot read property 'getBounds' of null

I have the 'address' field of my database mapped to the 'address' field of the map component and also mapped to the marker 'address'.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Uncaught TypeError: Cannot read property 'getBounds' of null

Hello Joe,

1) Could you please give an example of address that you were using?
2) Could you please show us a screenshot of your mapping ?

Joe Sharples
Posts: 0
Joined: Mon Aug 18, 2014 1:31 pm

Uncaught TypeError: Cannot read property 'getBounds' of null

Hi guys,
sorry about the late response.

Address example:
Arches 9 & 10, Whitworth West, Manchester M1 5LH

Image

Cheers,
Joe

Joe Sharples
Posts: 0
Joined: Mon Aug 18, 2014 1:31 pm

Uncaught TypeError: Cannot read property 'getBounds' of null

When I test the app the map component still works, and the address is shown with a marker, but the error still occurs.

Return to “Issues”