Mashiane Expert Licensed User Longtime User Nov 20, 2016 #1 Hi there Kinda frustrated right now. I copied the ABMGoogleMap demo example to my page however whilst it runs perfectly in the demo, in my example its kicking out a TypeError that is raised in common.js. Has anyone else experienced this and perhaps got a resolve? The map displays partially and then after a while brings ups an Oops. Please see attachment. I also have a method here where markers are being read from a database and added to the ABMGoogleMap, whilst that is called, it does no effect to the map. I have tried this with my api key and without the api key, same result. Please please please someone advise, I could be doing something wrong but I don't know what. Thanks in advance. Attachments frmLocator.bas frmLocator.bas 15 KB · Views: 744
Hi there Kinda frustrated right now. I copied the ABMGoogleMap demo example to my page however whilst it runs perfectly in the demo, in my example its kicking out a TypeError that is raised in common.js. Has anyone else experienced this and perhaps got a resolve? The map displays partially and then after a while brings ups an Oops. Please see attachment. I also have a method here where markers are being read from a database and added to the ABMGoogleMap, whilst that is called, it does no effect to the map. I have tried this with my api key and without the api key, same result. Please please please someone advise, I could be doing something wrong but I don't know what. Thanks in advance.
M mindful Active Member Licensed User Nov 20, 2016 #2 Have you tried setting page.NeedsGoogleMap = True in you BuildPage sub ?! Upvote 0
Harris Expert Licensed User Longtime User Nov 20, 2016 #3 You need Google map api key... I had the very same issue. Then add: page.GoogleMapsAPIExtras="key=MYASSIGINEDKEY.............=geometry,places" in your page init sub... The error SHOULD state - opps - you don't have an api key!!! (would be more helpful). https://www.b4x.com/android/forum/threads/abmaterial-googlemaps-geozones.69694/ first paragraph in this tut states this... Last edited: Nov 20, 2016 Upvote 0
You need Google map api key... I had the very same issue. Then add: page.GoogleMapsAPIExtras="key=MYASSIGINEDKEY.............=geometry,places" in your page init sub... The error SHOULD state - opps - you don't have an api key!!! (would be more helpful). https://www.b4x.com/android/forum/threads/abmaterial-googlemaps-geozones.69694/ first paragraph in this tut states this...
Mashiane Expert Licensed User Longtime User Nov 21, 2016 #4 @Harris @mindful: thanks guys. Irrespective of the demo running without an api key well, USE AN API KEY. Lesson learned. This is the same key as Google Maps JavaScript Key / Google Places Web Api service. Upvote 0
@Harris @mindful: thanks guys. Irrespective of the demo running without an api key well, USE AN API KEY. Lesson learned. This is the same key as Google Maps JavaScript Key / Google Places Web Api service.
Mashiane Expert Licensed User Longtime User Nov 21, 2016 #5 Eish, im in so much pressure to get this approved as the next framework for our webapps, so you can imagine trying to get buy in at times to be a challenge. So my proof of concept app needs to be super working marvelous. Thanks a lot guys, just removed my sweat from my brow. happy for days! Upvote 0
Eish, im in so much pressure to get this approved as the next framework for our webapps, so you can imagine trying to get buy in at times to be a challenge. So my proof of concept app needs to be super working marvelous. Thanks a lot guys, just removed my sweat from my brow. happy for days!
Mashiane Expert Licensed User Longtime User Nov 21, 2016 #6 Yippie!!! I however have to have a button that needs to be clicked to load the points as ConnectPage does not show I tried having this run on the _ready event of the map Upvote 0
Yippie!!! I however have to have a button that needs to be clicked to load the points as ConnectPage does not show I tried having this run on the _ready event of the map