Reputation: 63
I am trying to build an app using the Codename One GUI builder (which has been fantastic so far). I need to add a Google Maps container to my GUI but I am unsure as to how to do it either in the builder itself or by subclassing. Any examples or links to examples are more than welcome as well.
Upvotes: 0
Views: 99
Reputation: 429
You didn't mention whether this is referring to the old or new GUI builder. Either way neither one supports the MapContainer
our of the box as it is an extension and not a builtin component. This might change with the new GUI builder
For both GUI builders just create a border layout form. In the old GUI builder add the MapContainer
in the "before" callback event. In the new GUI builder add it right after the init call. Make sure to use the BorderLayout.CENTER
constraint.
Upvotes: 1