check If map loaded
check If map loaded
check If map loaded
Merge pull request #1218 from ahmetmircik/fixIssue1197

Fix issue #1197