Skip to content

Commit

Permalink
[BUILD]
Browse files Browse the repository at this point in the history
  • Loading branch information
Viglino committed May 17, 2024
1 parent 905a48a commit 5cc80ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/ol-ext.js
Original file line number Diff line number Diff line change
Expand Up @@ -30153,7 +30153,7 @@ ol.interaction.Transform = class olinteractionTransform extends ol.interaction.P
} else {
if (this.ispt_) {
// Calculate extent arround the point
var p = this.getMap().getPixelFromCoordinate([ext[0], ext[1]])
var p = this.getMap().getPixelFromCoordinate(ol.extent.getCenter(ext))
if (p) {
var dx = ptRadius ? ptRadius[0] || 10 : 10
var dy = ptRadius ? ptRadius[1] || 10 : 10
Expand Down
2 changes: 1 addition & 1 deletion dist/ol-ext.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions examples/routing/map.source.dijkstra2.html
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ <h2>Options</h2>
}
// Get the real length of the geom
dijkstra.getLength = function(geom) {
console.log(geom)
if (geom.getGeometry) {
//? return geom.get('km')*1000;
geom = geom.getGeometry();
Expand Down

0 comments on commit 5cc80ab

Please sign in to comment.