B4J Question [ABMaterial] ABMGoogleMap disappears...

ToolboxZX

Member
Licensed User
Longtime User
Attempting to create a simple google map. Using the sample code, the map appears on my page for a second, then disappears with the message "Opps something happened" appearing in its place.

The sample demo code for creation of the ABM object was just pasted into the new page:

Dim gm1 As ABMGoogleMap
gm1.Initialize(page, "gm1", 50.8500, 2.8833, 15, 350, ABM.GOOGLEMAPTYPE_ROADMAP)
gm1.Draggable = True
gm1.HasMapTypeControl = True
gm1.HasStreetViewControl = True
gm1.HasZoomControl = True
gm1.AddMapType(ABM.GOOGLEMAPTYPE_ROADMAP)
gm1.AddMapType(ABM.GOOGLEMAPTYPE_TERRAIN)
gm1.AddMapType(ABM.GOOGLEMAPTYPE_HYBRID)
gm1.AddMapType(ABM.GOOGLEMAPTYPE_SATELLITE)
page.Cell(2,1).AddComponent(gm1)

Error message image and IE debug screenshot attached.

The map in the demo works, but the new page I created does not. I then added the new page into the demo project itself with the same results. Using W7 IE: 11
 

Attachments

  • error_1.jpg
    error_1.jpg
    17.3 KB · Views: 284
  • error_2.jpg
    error_2.jpg
    16.7 KB · Views: 282
Top