Skip to content

Commit

Permalink
Updated GoogleMaps.cn1lib to match version 22 of extensions repository.
Browse files Browse the repository at this point in the history
  • Loading branch information
shannah committed Sep 27, 2017
1 parent 8fec52c commit ab47190
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified GoogleMaps.cn1lib
Binary file not shown.
2 changes: 1 addition & 1 deletion GoogleMaps/src/com_codename1_googlemaps_MapContainer.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit ab47190

Please sign in to comment.