//=============================================================================
//===================== TESTS DE SIMBOLOGÍA SIMPLE ============================
//======================== valores por defecto ============================
//=============================================================================
//================== RESUMEN DE DE LOS TEST ===================================
// Se crean estilos sin parámetros al constructor por lo que deben establecerse
// los estilos por defecto
// Se crean estilos indicando solo color por lo que el resto de parámetros
// deberían establecerse
// Se crean estilos indicando solo stroke por lo que el resto de parámetros
// deberían establecerse
// Se crean estilos indicando solo radius por lo que el resto de parámetros
// deberían establecerse
// Se crean estilos variados
// Se establecen estilos a nivel de capa
// Se establece estilos a nivel de feature
//==============================================================================
//==============================================================================
// constructor del mapa
let mapajs = M.map({
container: "map",
projection: "EPSG:4326*d",
layers: ["OSM"],
center: {
x: -5.9584180843195425,
y: 37.36912689160224
},
zoom: 5,
controls: ['layerswitcher', 'overviewmap'],
});
let points = new M.layer.GeoJSON({
name: 'points',
source: {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Point",
"coordinates": [
-6.207275390625,
38.06971703320484
]
}
},
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Point",
"coordinates": [
-5.6689453125,
38.013476231041935
]
}
},
{
"type": "Feature",
"properties": {},
"geometry": {
"type":...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.