Select to view content in your preferred language

centerAndZoom in safari

828
2
05-04-2014 02:08 AM
Lars_HalvorAnundskaas
Deactivated User
I have a little problem in my app. I have tested this in Firefox, chrome, ie 9/10 and safari for windows.
The problem/bug is only present in safari and is triggered by map.centerAndZoom(point, zoomLevel)

Everything works fine for short distances but if i centerAndZoom from for instance norway to sidney the map goes grey and never reappaer.

I'm using html5 geolocation and I have set the start extent of the map to new york, It's pretty clear that when geolocation is slow and the map is initialized and centered around new york before my location in norway is resolved, the map is greyed as it tries to centerAndZoom, but when geolocation resolves very quickly, it works, I never see new york on the map, It's centered at my location.

I have a location search on the map, with functionality to centerAndZoom - when I search for a location far away from current map position the map goes grey, but not if searching/clicking places nearby.

This problem is not present in safari for iOS, only on windows desktop.

In the other browsers everything works as expected. Anyone have an idea what this might be?
0 Kudos
2 Replies
JohnGravois
Deactivated User
hi lars,

i'd have to check with the team to make sure, but i'm under the impression that Safari for Windows (which appears to be no longer in active development) is not supported by our API.
0 Kudos
Lars_HalvorAnundskaas
Deactivated User
Apparently you're right, so I will not put any more energy into supporting this.
Thanks a lot! 🙂

Lars
0 Kudos