Plantilla Discussió:Map draw: diferència entre les revisions

Contingut suprimit Contingut afegit
→‎Circular area: secció nova
Línia 309:
:::: {{ping|Amadalvarez}} El mòdul ja ho fa, si no troba l'ítem o no troba la P625 no hi afegeix res. Tot i així encara pot generar un mapa amb dades buides si està definit a OSM. Per exemple el Viccionari no té accés a Wikidata, no pot consultar cap dada, però genera mapes sense tenir coordenades perquè estan carregats d'OSM al Katographer: [[wikt:Teià]]. El mateix pot passar, en un cas estrany, si no hi ha coordenades a Wikidata però hi ha mapa a OSM. El fet que mapframe sense dades mostri un mapa a 0,0 ja ve de fàbrica, si es demana un mapa en mostra un. Al mòdul li he afegit que si al final no pot generar cap objecte doncs que no mostri res. Però hi continuarà havent el problema d'ExternalData que el genera sempre que si li demani encara que no hi hagi cap dada externa. --[[Usuari:Vriullop|V.Riullop]] ([[Usuari Discussió:Vriullop|parlem-ne]]) 09:49, 23 jul 2019 (CEST)
:::::{{ping|Vriullop}} Val, doncs donaré per definitiu el canvi que explicava més amunt. De fet, la intenció ja era no invocar si no li havia passat res. Merci per l'explicació. [[Usuari:Amadalvarez|amador]] ([[Usuari Discussió:Amadalvarez|disc.]]) 10:09, 23 jul 2019 (CEST)
 
== Circular area ==
 
Hello. It's possible to add the feature of circular area to the module, like it's in the module of the English Wikipedia [[:en:Module:Mapframe]]? An use example would be <code><nowiki>{{map draw|geotype=circle|radius=1000|coordinates=-31.95,115.85|fill=#00ff00}}</nowiki></code>. The English module calculates some coordinates for the circular line from the coordinates of the center of the circle and the radius. Internally the new <code>geotype=circle</code> has to be converted into <code>geotype=LineString</code>, because in the tags <code>mapframe</code> and <code>maplink</code> this geotype doesn't exist. Greetings --[[Usuari:Tlustulimu|Tlustulimu]] ([[Usuari Discussió:Tlustulimu|disc.]]) 22:00, 4 maig 2020 (CEST)
Torna a la pàgina "Map draw".