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

Removing Data #36

Open
ZARichardWright opened this issue Jun 21, 2024 · 9 comments
Open

Removing Data #36

ZARichardWright opened this issue Jun 21, 2024 · 9 comments

Comments

@ZARichardWright
Copy link

Hi Thanks for the great component so far.

I feel like there must be a way i am just missing it but i would like to remove an polyline that was added via the
Realmap.Geometric.DataFromGeoJSON.addObject function.

Cheers in advance

@ichim
Copy link
Owner

ichim commented Jun 21, 2024

Hello sir,

Good question!

This functionality is new. To delete we haven't created a method yet, I am sorry!

In the next version I will add this method.

@ichim
Copy link
Owner

ichim commented Nov 18, 2024

Not yet sir! Sorry

@rfarkv
Copy link

rfarkv commented Nov 18, 2024

Hello sir,

Good question!

This functionality is new. To delete we haven't created a method yet, I am sorry!

In the next version I will add this method.

Has this method ever been implemented? I can't find it.
Thanks!

@rfarkv
Copy link

rfarkv commented Nov 18, 2024

Not yet sir! Sorry

Can i do something to achieve this in the meantime? The idea is to delete the old polyline and draw a new one.
Thanks!

@ichim
Copy link
Owner

ichim commented Nov 19, 2024

Polyline have properties (attributes)?

@rfarkv
Copy link

rfarkv commented Nov 21, 2024

Here's part of the code i use to create a polyline:

 var data = new GeoJsonObject.GeoJSONItem[]
 {
     new GeoJsonObject.GeoJSONItem()
     {
         type = "Feature",
         geometry = new Geometrya()
         {
             type = "Polyline",
             coordinates = EmbarqueSelecionado.DecodedPolylineLatLngs.ToArray(),
             properties = new
             {
                 name = "Trajeto",
             },
         },
     }
 };

 var geoJsonObj = new GeoJsonObject
 {
     data = data,
     appearance = new GeoJsonObject.Appearance
     {
         color = "blue",
     },
 };

 await realTimeMap.Geometric.DataFromGeoJSON.addObject(geoJsonObj);

@rfarkv
Copy link

rfarkv commented Dec 13, 2024

@ichim Sorry to bother but any news on that? Any workaround or anyting?

@rfarkv
Copy link

rfarkv commented Dec 20, 2024

@ichim I ended up using js to delete the polyline.

@oldominion
Copy link

+1 for this. In the absence of a deleteAll function for GeoJSON data, is there a convenient way to completely reset the 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

4 participants