Never mind, figured it out. For those that might find this in google, I forgot to add:

CLASS_NAME: "OpenLayers.Control.GetCoords"

To my custom control.

Ken

On 06/10/2010 12:19 PM, Ken wrote:
Hi there, I am having a problem getting my display class to register on
a custom control, thought someone could point out what I am doing wrong.

I have this to set my control:

var control = new OpenLayers.Control({'displayClass':
'GetCoords','title': 'Add Record: Zoom in and when ready click on the
map to add a record.'});

I then create that control and add to a custom panel.

The title works fine, I can mouse over where the graphic should be and
get the title, the control itself also works as it should, but it is not
registering the displayclass. If I inspect the element it is calling
itself olControlItemInactive instead of olControlGetCoordsItemInactive
like I expected.

Am I not using displayClass right?

Thanks,

Ken

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to