diff --git a/GoogleMaps.cn1lib b/GoogleMaps.cn1lib index 278b210..8105dfa 100644 Binary files a/GoogleMaps.cn1lib and b/GoogleMaps.cn1lib differ diff --git a/GoogleMaps/src/com_codename1_googlemaps_MapContainer.html b/GoogleMaps/src/com_codename1_googlemaps_MapContainer.html index b123d93..3d379b3 100644 --- a/GoogleMaps/src/com_codename1_googlemaps_MapContainer.html +++ b/GoogleMaps/src/com_codename1_googlemaps_MapContainer.html @@ -119,7 +119,7 @@ this.ready(function() { var topRight=this.map.getProjection().fromLatLngToPoint(this.map.getBounds().getNorthEast()); var bottomLeft=this.map.getProjection().fromLatLngToPoint(this.map.getBounds().getSouthWest()); - var scale=Math.pow(2,this.map.getZoom()); + var scale=Math.pow(2,this.map.getZoom()) * window.devicePixelRatio; this.lastPoint = this.map.getProjection().fromLatLngToPoint(new google.maps.LatLng(lat, lon)); this.lastPoint = new google.maps.Point((this.lastPoint.x-bottomLeft.x)*scale,(this.lastPoint.y-topRight.y)*scale); });