Thanks to Dinos comment above i have now resolved this issue.
It turns out i was logged into the CS50 IDE under cloud9.
When running flask this produced a ulr: "http://ide50-USERNAME.c9users.io:8080/"
I havefirst manually changed the url addressthis to "https://ide50-USERNAME.cs50.io:8080/" and the format he has proividedmap would run correctly, however. Flask would still give me the incorrect ulr and i would have to manually override this then asked for cs50 authentication.
The next time I logged into the IDE I noticed the ulr started with "ide.c9.io". I now log into the IDE using "https://ide.cs50.io/username/ide50" and connectedflask produces a link that connects to google maps correctly.
Hope this helps anyone else with this issue.