#1 Wed 08 July 2009 02:48
- trouvetongull
- Participant occasionnel
- Date d'inscription: 29 Jun 2009
- Messages: 26
[OL] Padding sur icône par rapport au point
Bonjour,
je souhaite intégrer un espacement des icones (d'un georss) par rapport au point d'origine (lat/long). J'ai essayé ceci:
Code:
var test = new OpenLayers.Icon("image.png", new OpenLayers.Size(16,16), new OpenLayers.Pixel(10));
var newl3 = new OpenLayers.Layer.GeoRSS( 'GeoRSS', 'markers.xml', {'icon':test});
map.addLayer(newl3);Mais ça fait le padding par rapport au bord de la carte, pas aux points ![]()
OpenLayers.Pixel n'est pas la bonne fonction pour faire ceci?
Je voudrais espacer de 10px par rapport au haut.
++
Dernière modification par trouvetongull (Wed 08 July 2009 02:58)
Hors ligne


