ichim / LeafletForBlazor-NuGet

LeafletForBlazor NuGet Package - You can quickly add a map control to your Blazor application - 2.2.2.2 version. #12 issue, StreamLegend customization
https://www.nuget.org/packages/LeafletForBlazor#versions-body-tab
75 stars 9 forks source link

How can I to use a map webservice #56

Open Peterllan opened 2 days ago

Peterllan commented 2 days ago

I am developing a Blazor server app that must display some points on a map, for this I use the LEAFLETFORBLAZOR REALTIMEMAP control. The map works correctly if I use the maps "OpenStreetMap" or "OpenTopoMap", with the URLs: "http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" or "https://tile.opentopomap.org/{z}/{x}/{y}.png".

However, I must display the data on a map obtained from a web map service (WMS) with the following URL: "http://www.ideextremadura.com/CICTEX/EXTREMADURA_BASE_VERSION2?". With this service and with this URL I previously developed a web with javascript and the leaflet.js library that works correctly.

This is the code used but it doesn't work:

new RealTimeMap.BasemapLayer() { url = "http://www.ideextremadura.com/CICTEX/EXTREMADURA_BASE_VERSION2?", attribution = "© CITEX IDE Extremadura'", title = "IDE Extremadura", detectRetina = true }

ichim commented 2 days ago

Hello sir,

At this moment RealTimeMap cannot display wms services (tilelayers). At the moment, RTM can only use image services (tilelayers/png). Sorry

Peterllan commented 1 day ago

Thank you for your reply.

Is there a plan to add the possibility of working with map web services (WMS) in future versions?

ichim commented 1 day ago

Hello again,

Yes, it's in the plan!

Peterllan commented 1 day ago

Maps from a WMS could be displayed with the Map control?

ichim commented 1 day ago

No sir, sorry.