[OpenLayers-Users] Feature Icons?

Matthew Atkins Matthew.Atkins at loyola.com
Wed Oct 8 10:05:23 EDT 2008


var pointfeature = new OpenLayers.Feature.Vector(
  new OpenLayers.Geometry.Point(lonlat.lon, lonlat.lat)
);
pointfeature.style = {};
pointfeature.style.externalGraphic = 'graphic.gif';
pointfeature.style.pointRadius = 12; // play with this setting
vectorLayer.addFeatures([newpointfeature]);

-----Original Message-----
From: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org]
On Behalf Of Heidt, Christopher M.
Sent: Wednesday, October 08, 2008 9:51 AM
To: users at openlayers.org
Subject: [OpenLayers-Users] Feature Icons?

Is it possible to give a feature a graphic without having to make it a
marker?
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users



More information about the Users mailing list