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

Maximum recursive updates exceeded in component <ol-source-vector>. #394

Open
dbelouslv opened this issue Nov 13, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@dbelouslv
Copy link

dbelouslv commented Nov 13, 2024

Describe the bug
I have an error:

Uncaught (in promise) SyntaxError: The requested module '/_nuxt/@fs/C:/Projects//src/PublicSite/client-app/node_modules/xml-utils/find-tags-by-name.js?v=f1b9b628' does not provide an export named 'default' (at geotiffimage.js:4:8)*

when I have the latest version of packages:

[email protected]
[email protected]
vue3-openlayers@latest

And this error:

Maximum recursive updates exceeded in component ol-source-vector.

when I have:

[email protected]
[email protected]
[email protected]

Expected behavior
It works without red errors

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser 132.0.6834.6 Google Canary (64 bits)

Additional context

     <ol-vector-layer>
         <ol-source-vector :features="geoJsonFeatures" :format="geoJson" />
         <ol-style>
             <ol-style-icon :src="markerIcon" :scale="0.8"></ol-style-icon>
         </ol-style>
     </ol-vector-layer>
 </ol-map>

const center = ref([-84.570812, 33.907047]);
const projection = ref('EPSG:4326');
const zoom = ref(5.75);
const rotation = ref(0);
const markerIcon = ref('/images/partnership/logo.png');
const geoJson = new GeoJSON();

const geoJsonFeatures = computed(() => {
    const features = getFilteredApplicatorsList()
        .filter(applicator => !isNaN(parseFloat(applicator.applicatorLat!)) && !isNaN(parseFloat(applicator.applicatorLong!)))
        .map((applicator, i) => {
            return {
                type: "Feature",
                properties: {},
                geometry: {
                    type: "Point",
                    coordinates: [parseFloat(applicator.applicatorLong), parseFloat(applicator.applicatorLat)],
                }
            };
        });

    return geoJson.readFeatures({
        type: "FeatureCollection",
        features
    });
});
@dbelouslv dbelouslv added the bug Something isn't working label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant