Unfortunately you need a Key API. I am using all free bees, adding a key would mean making many changes in the code. Find a map that does not require Api Key
Hi, thanks for your response. I hadn't realized an API was necessary for this image provider.
I understand this may not be among your priorities, but I see that Leaflet offers the option to view WMS (Web Map Service) layers.
For Spain (which is my area of work), the most up-to-date satellite imagery can be obtained using a WMS, in addition to other layers of interest for emergency services. I understand this is very specific, but, would it be possible to access WMS layers in a "simple" way for users who don't know much... perhaps by configuring the most important options in a file or something like that?
URL: .URL of the WMS web service we want to consume.
layers: Specifies the name of the WMS layer we want to request from the server.
format: Defines the format of the image to be downloaded (for example, image/png or image/jpeg).
transparent: Indicates whether the layer should have transparency (true) or not (false).
attribution: Add information about the source of the data, which will be displayed on the map.
Example...
[CODE lang="javascript" title="Ejemplo"]// Definir las capas WMS
var pnoaLayer = L.tileLayer.wms('https://www.ign.es/wms-inspire/pnoa-ma?', {
layers: 'OI.OrthoimageCoverage',
format: 'image/jpeg',
transparent: false,
attribution: 'PNOA - © Instituto Geográfico Nacional de España'
});
var curvasNivelLayer = L.tileLayer.wms('https://servicios.idee.es/wms-inspire/mdt?', {
layers: 'EL.ContourLine',
format: 'image/png',
transparent: true,
attribution: '© Instituto Geográfico Nacional de España'
});
var ignBaseLayer = L.tileLayer.wms('https://www.ign.es/wms-inspire/ign-base?', {
layers: 'IGNBaseOrto',
format: 'image/png',
transparent: true,
opacity: 0.75,
attribution: '© Instituto Geográfico Nacional de España'
});
var catastroLayer = L.tileLayer.wms('https://ovc.catastro.meh.es/cartografia/INSPIRE/spadgcwms.aspx?', {
layers: 'BU.Building',
format: 'image/png',
transparent: true,
attribution: 'Catastro © Ministerio de Hacienda'
});[/CODE]
There's an example on this page. I don't know if this development is possible, and in any case, I understand the difficulty and why it's not planned, but I think access to these layers would be useful for more people.
Well, thank you again, and sorry if I'm going on about too much.