Closed StefanBrand closed 1 year ago
Hi, thank you @StefanBrand . Yes could propose that in README, even add a MVTRenderer mixin if you want
Hi, @submarcos . I went for a simple addition to the README because I did not want to introduce a dependency on DRF.
I'm happy to make any changes to the PR if you have suggestions. :)
I was trying to use a DRF view with django-vectortiles, as mentioned in the README. When I do a tileserver view like this:
I get
<Response status_code=406, "application/json">
("Could not satisfy the request Accept header"). This is probably due to DRF's content negotiation.As a workaround I provide a custom renderer:
@submarcos If helpful, I can add some hint to the README. I'm even wondering if
MVTView
shouldn't addrenderer_classes
by default...