Unimplemented Type 4 error when styling leaflet vector tiles - leaflet

I am trying to style the vector tiles on leaflet using vector grid plugin. The vector tiles are coming from my own server.
However when I try to specify the style using vector grid plugin, I get an error unimplemented type 4
How could I get rid of this error? Any plugin links or documentation will be really helpful!
Thanks

Related

Labelling multi polygons with the same geometry

In my dataset i have some polygons overlapped each other and I want to display their value in the label. In qgis we can do this as follows.
first step
Second step
multi labeling results in qgis
I am looking for a solution in mapbox studio to be able to do this.
There are some options like Expressions in Mapbox studio style but all are for working with labelling using multiple columns. But i need to have labelling based on multi features that have overlapping.

How to use react leaflet with custom vector tiles

I have created a vector tile servie. The API is as follows.
https://api.ellipsis-drive.com/v3/path/32b10f2e-3d75-45f5-aa15-92eff37a5ba9/vector/timestamp/d169b398-6f61-4392-89cb-9fdf7ec51732/tile/{z}/{x}/{y}?style=2f767421-5bf1-41ec-8e0b-7b4b27b68a96
Each zyx combination returns a protobuf (as I believe is the standard). I wanted to render this in react-leaflet and tried the following:
<MapContainer>
<VectorTileLayer url="https://api.ellipsis-drive.com/v3/path/32b10f2e-3d75-45f5-aa15-92eff37a5ba9/vector/timestamp/d169b398-6f61-4392-89cb-9fdf7ec51732/tile/{z}/{x}/{y}?style=2f767421-5bf1-41ec-8e0b-7b4b27b68a96" />
</MapContainer>
Unfortunately this does not render the layer.
In the network tab I notice that this code produces an API call
https://api.ellipsis-drive.com/v3/path/32b10f2e-3d75-45f5-aa15-92eff37a5ba9/vector/timestamp/d169b398-6f61-4392-89cb-9fdf7ec51732/tile/{z}/{x}/{y}?style=2f767421-5bf1-41ec-8e0b-7b4b27b68a96
With z, x and y not filled in. This predictably returns a 400, as it is supposed to fill in the correct z, x and y based on the view port.
Am I using this package the wrong way? Does anyone have an example for react-leaflet using an /{z}/{x}/{y} structure?

How can I convert a tileset to an Albers projection? Or add a feature to an albers projection that lines up correctly?

Mapbox studio has a style with an Albers projection (https://www.mapbox.com/elections/albers-usa-projection-style):
I need to use another style with waterbodies like this:
but in the Albers projection. When I start with the Albers style, and then add water, they of course don't line up:
How can I get the tile I used in my waterbody example to be in the Albers project? I ultimately am wanting to use it in a leaflet map and add markers to it (using R).
The example you cited above is actually showing a workaround to make data appear as if it is projected in Albers but it's really just altered polygons being displayed in webmercator. This was a workaround/hack to get the desired visual using the tools available at the time. If you want to do the same workaround for your water bodies data so it will appear this way in leaflet, follow the steps of the tutorial which uses third party tools (QGIS, Dirty Reprojectors, Tippecanoe)
Mapbox has since added support for non-webmercator projections, which means you don't need to modify your source data to reproject them for use in a mapboxgl-js map: https://docs.mapbox.com/mapbox-gl-js/example/projections/
Disregard the earlier example, and just change the projection to Albers in Mapbox Studio.
Bear in mind that changing the projection in Mapbox Studio does not actually modify your data, it just renders it differently on the screen.

Unable to plot under Channel Data (Scrolling) while running eeglabv4.5 on matlab

I am new to eeg analysis and so the following the tutorial 'Swartz Center for COmputational Neuroscience'. I am running eeglabv4.5 on matlab (trail version). After loading the dataset it says to select the top Plot menu item, Plot > Channel data (scroll) which should pop up the eegplot() scrolling data window.
But I am getting the following error:
Error: Error using matlab.graphics.Graphics/set The name 'Units' is not an accessible property for an instance of class 'matlab.graphics.GraphicsPlaceholder'. while using plot and channel data scrolling
Downloading eeglab15_0b version solves the issue.

How To Plot custom images as markers over a Polarplot()?

I want to create a polarplot() on which I want to plot custom bitmaps/images as marker.
Also, I want to animate the polarplot() by updating these marker's location in regular time intervals(500milliseconds).
Please see the below attached image to get an idea what I want.
SamplePlotExample.jpg
I have made a similar application using 'polar()' and 'imagesc()'.
But I feel 'polarplot()' is better and recommended by Matlab.
Also there are so many customization options available with polarplot().
But I am unable to use imagesc() with polarplot because of some polar coordinate-to-cartersian coordinate conversion problem.
Pleas give solution.
Is there any other better methods to follow?