Skip to Content
avatar image
Former Member

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

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Aug 24, 2017 at 02:15 PM

    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?

    Add comment
    10|10000 characters needed characters exceeded