I'm trying to use TWebGoogleMaps and it fails when I set the API Key. The reported error is:
From where exactly do you set the API key?
Please set it in the Form's OnCreate event (just like in our demo)
This is where I set the APIKey, it even fails if the property is set at design time. This is fine if the ElementId property is not set.
2. Add a TWebGoogleMaps to the unit
so how would you place it on a form that uses an HTML Template?
You could put it on a HTML container that you map to a HTML element in the template.
Yes, that's what I'm trying (actually on a pagecontrol page). But it seems to have a height of 0 so doesn't show. I'll get there.
I dropped a TWebPageControl on the form. On one of the pages, I dropped the TWebGoogleMaps controls and set the API key. This resulted in the TMS WEB Core application showing the Google Maps when I click the tab where it is on. I could not see a problem.
I've based the app on the music example so everything is loading into divs within divs, I wonder if that's the issue. I'll play around and report back