Skip to Content
0

Error:Not Loading google map in onafterrendring while accessing second time

Aug 24, 2017 at 10:00 AM

36

avatar image
Former Member

I am trying to bind lat and long value in google map in a view after selection of a value, first time i am able to set marker on google map but second time google map is getting gray blur screen, and when i click on expand button available on google map then map is loading please help me on this issue. details screenshots are mentioned below.

this is the first screen where i have list of data and on selection of any data it will show location on google map in next screen

here location is showing first time that is onafterrendering method called successfully, later when i go back and come again it is not showing

so after first time when i select any data map is coming like this way.

below is my code

Please provide me solution for this.

step1.jpg (82.2 kB)
step2.jpg (119.0 kB)
step-3.jpg (41.8 kB)
step-4.jpg (257.0 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Sharath M G Aug 24, 2017 at 02:15 PM
0

The reason could be due to the code in onAfterRendering. As its execution is controlled by framework, it may not be getting called the second time as controls are loaded.

Can you not use any other custom event handlers to perform this activity?

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Thanks for reply. onClick of any event it will come but I want this on load of page after first time load. I tried all possible ways to resolve this issue. If you have any idea please let me know.

Thanks

0

Did you try the method onAfterRendering or onBeforeRendering methods?

0