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

Does not show the layer #8

Open
josejachuf opened this issue Aug 3, 2022 · 2 comments
Open

Does not show the layer #8

josejachuf opened this issue Aug 3, 2022 · 2 comments

Comments

@josejachuf
Copy link

Hello how are you?

I'm trying to use the component to show my own layer served as VT.

If I do it with Leaflet andL.vectorGrid.protobuf as a test, it works fine, but when I take it to my application that uses Vue Leaflet and your component, it does not show me the points, I do not get errors or anything, but if I see the response of the requests, I am obtaining the data in the right way from the server

imagen

        <l-protobuf
          :options="vectorTileOptions"
          url="http://127.0.0.1:8009/tiles/{z}/{y}/{x}.pbf"
          name="Puntos VTL"
          layerType="overlay"
        />
      vectorTileOptions: {
        vectorTileLayerStyles: {
          puntos: {
            color: '#666666',
            weight: 2,
            fillColor: '#ffb407',
            opacity: 1,
            fillOpacity: 0.4,
            fill: true
          }
        },
        minZoom: 8,
        maxZoom: 18,
        interactive: true
      }

Any idea about this?

@josejachuf
Copy link
Author

I add something else, in the control-layers I don't see the layer.

I also put:
:visible="true"

@josejachuf
Copy link
Author

A part is solved, there is an error in the documentation:

<l-map :zoom=10 :center="[-34.9205, -57.953646]">
-      <l-protobuf url="https://example.com/my/favorite/endpoint/{z}/{y}/{x}.pbf" :options="options"/>
+      <l-protobuf url="https://example.com/my/favorite/endpoint/{z}/{x}/{y}.pbf" :options="options"/>
</l-map>

But I still do not see the layer in the Layer-Control and the points layer is at the bottom, covered by the base map

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

1 participant