I have a WebMapViewer in a Container (in a WebDialog) that shows the google map of a desired location by:
Dim location As New WebMapLocation("Hong Kong " + rs.field("StreetNumber").StringValue + " " + rs.Field("StreetName").StringValue) MapViewer1.GoToLocation(location) MapViewer1.AddLocation(location) MapViewer1.Zoom = 16 MapViewer1.MapType = 0
For the first time showing the map after the web app is loaded, the location has a little bit “offset” to the the correct location (https://drive.google.com/open?id=0B2DNp_dIdcJXT1NWN3o4d0hWckk)
By closing the WebDialog and enter again, the WebMapViewer shows correct location (https://drive.google.com/open?id=0B2DNp_dIdcJXekdrSmdGZjl3SkU)
“offset” situation (https://drive.google.com/open?id=0B2DNp_dIdcJXcDVXckNCbE9vOVU)
This problem only happens the first time the map is displayed, any idea?