Skip to content

Commit ab47190

Browse files
committed
Updated GoogleMaps.cn1lib to match version 22 of extensions repository.
1 parent 8fec52c commit ab47190

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

GoogleMaps.cn1lib

875 Bytes
Binary file not shown.

GoogleMaps/src/com_codename1_googlemaps_MapContainer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
this.ready(function() {
120120
var topRight=this.map.getProjection().fromLatLngToPoint(this.map.getBounds().getNorthEast());
121121
var bottomLeft=this.map.getProjection().fromLatLngToPoint(this.map.getBounds().getSouthWest());
122-
var scale=Math.pow(2,this.map.getZoom());
122+
var scale=Math.pow(2,this.map.getZoom()) * window.devicePixelRatio;
123123
this.lastPoint = this.map.getProjection().fromLatLngToPoint(new google.maps.LatLng(lat, lon));
124124
this.lastPoint = new google.maps.Point((this.lastPoint.x-bottomLeft.x)*scale,(this.lastPoint.y-topRight.y)*scale);
125125
});

0 commit comments

Comments
 (0)