Post

Replies

Boosts

Views

Activity

Map size for MapKit JS on mobile
Hello, This code works fine for desktop, but it's very difficult to display user location, map type controls for mobile. <style> #map { width: 100%; height: calc(100vh - 132px); } </style> The map's existence depends on the height property only. The controls depend on the width one. Although the algorithm is not clear. I see that the width must be more or equal to display width. It works for portrait, but not for landscape. <style> #map { position: absolute; top: 58px; left: 0px; width: calc(100vw); height: calc(100vh - 132px); } </style> How to get stable appearance of the controls for any cases? I used iPhone SE 1.
1
0
699
Jul ’21
MapKit JS Cluster refreshing
Hello, When I refresh map with clusters, they fall to annotations, then gather them again. Of course, it's not an animation, it's the cluster's style work. It looks awful. I played with background and foreground maps, seems it doesn't work. Please, advise.
Replies
0
Boosts
0
Views
738
Activity
Nov ’21
Map size for MapKit JS on mobile
Hello, This code works fine for desktop, but it's very difficult to display user location, map type controls for mobile. <style> #map { width: 100%; height: calc(100vh - 132px); } </style> The map's existence depends on the height property only. The controls depend on the width one. Although the algorithm is not clear. I see that the width must be more or equal to display width. It works for portrait, but not for landscape. <style> #map { position: absolute; top: 58px; left: 0px; width: calc(100vw); height: calc(100vh - 132px); } </style> How to get stable appearance of the controls for any cases? I used iPhone SE 1.
Replies
1
Boosts
0
Views
699
Activity
Jul ’21