[OpenLayers-Trac] [OpenLayers] #751: Marker.Label
OpenLayers
trac at openlayers.org
Thu Nov 1 15:17:30 EDT 2007
#751: Marker.Label
-------------------------+--------------------------------------------------
Reporter: openlayers | Owner:
Type: feature | Status: new
Priority: minor | Milestone: 2.6 Release
Component: Marker | Version: 2.5
Resolution: | Keywords: marker label
-------------------------+--------------------------------------------------
Comment (by jachym):
Other proposed changes:
OpenLayers/Layer/Text.js:
-------------------------
{{{
data['overflow'] = overflow || "auto";
+ data.label = title;
}}}
OpenLayers/Feature.js:
-------------------------
{{{
- this.marker = new OpenLayers.Marker(this.lonlat, this.data.icon);
+ if (this.data.label) {
+ this.marker = new OpenLayers.Marker.Label(this.lonlat,
this.data.icon, this.data.label,{mouseOver:true});
+ }
+ else {
+ this.marker = new OpenLayers.Marker(this.lonlat, this.data.icon);
+ }
}}}
--
Ticket URL: <http://trac.openlayers.org/ticket/751#comment:2>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list