Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/hyoo-ru/map.hyoo.ru
Browse files Browse the repository at this point in the history
  • Loading branch information
nin-jin committed Nov 14, 2023
2 parents 7ab3c0c + ce9a634 commit f5970e6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions map.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ $hyoo_map $mol_view
tiles_options *
sketch \https://basemaps.cartocdn.com/rastertiles/voyager/{level}/{x}/{y}.png
photo \https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{level}/{y}/{x}
auto /
<= center_offset null
sub /
<= Main $mol_page
head /
Expand Down
6 changes: 6 additions & 0 deletions map.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ namespace $.$$ {

}

@ $mol_action
geo_jump( coord: $mol_vector_2d< number >, zoom = 1 ) {
this.zoom( zoom )
this.center( this.Pane().geo_to_tile( coord ).multed0( -zoom ).added1( this.center_offset() ) )
}

@ $mol_mem
draw_uri() {
return super.draw_uri()
Expand Down

0 comments on commit f5970e6

Please sign in to comment.