Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Add "source" variable to VectorLayer/HeatmapLayer #340

Open
felixfiskare opened this issue Dec 22, 2024 · 1 comment
Open

Feature: Add "source" variable to VectorLayer/HeatmapLayer #340

felixfiskare opened this issue Dec 22, 2024 · 1 comment

Comments

@felixfiskare
Copy link

Feature

Add a VectorSource directly to a VectorLayer / HeatmapLayer

Why

I would like to use one VectorSource for multiple HeatmapLayer Instances. Unfortunately I can't set a VectorSource as a "source" directly. Looking at the code I can see, that a VectorSource is being created during the Layer Initialization. Could you be so kind and add the source Variable to the VectorLayer as a direct Input?

I'm thinking about something like this:

const sharedVectorSource = new VectorSource({
    ...
  });

 return <>
    <RMap >
      {/* First layer using the shared source */}
      <RLayerHeatmap source={sharedVectorSource} weight={weightFunction1} />

      {/* Second layer using the same source but with a different weight function */}
      <RLayerHeatmap source={sharedVectorSource} weight={weightFunction2} />
    </RMap>
  );
};
<>
@mmomtchev
Copy link
Owner

This is not a common case and it is very down the priority list - especially since releasing new versions now is much more difficult given that I am living on the street because the geospatial data industry has agreed to back an extortion about corruption in the French and EU judicial systems that can be traced back to what appears to be the serious size problem of one person.

Since you insist on showing that you are part of this extortion - by simultaneously posting in several projects - and you have the nerve to even make a request - I have to remind you of the current situation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants