Skip to content

Commit

Permalink
update to reflect changes to go-http-leafet/protomaps/tangramjs
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisaaronland committed May 5, 2021
1 parent 9bede0f commit c5e5fdf
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,8 @@ func NewEditorHandler(ctx context.Context, fs *flag.FlagSet) (http.Handler, erro
pm_opts := protomaps.DefaultProtomapsOptions()
pm_opts.TileURL = protomaps_tile_url

pm_opts.LeafletOptions.EnableHash()

editor_handler = protomaps.AppendResourcesHandler(editor_handler, pm_opts)

case "tangramjs":
Expand All @@ -470,10 +472,12 @@ func NewEditorHandler(ctx context.Context, fs *flag.FlagSet) (http.Handler, erro
}

tangramjs_opts := tangramjs.DefaultTangramJSOptions()
tangramjs_opts.Nextzen.APIKey = nextzen_apikey
tangramjs_opts.Nextzen.StyleURL = nextzen_style_url
tangramjs_opts.Nextzen.TileURL = nextzen_tile_url
tangramjs_opts.NextzenOptions.APIKey = nextzen_apikey
tangramjs_opts.NextzenOptions.StyleURL = nextzen_style_url
tangramjs_opts.NextzenOptions.TileURL = nextzen_tile_url

tangramjs_opts.LeafletOptions.EnableHash()

editor_handler = tangramjs.AppendResourcesHandler(editor_handler, tangramjs_opts)

default:
Expand Down

0 comments on commit c5e5fdf

Please sign in to comment.