[OpenLayers-Dev] Re: modifying the openlayer default style
Matt Priour
mpriour at kestrelcomputer.com
Thu Nov 18 14:05:01 EST 2010
This is a limitation which should be addressed in OL3. As you can see in the
code snippet below from the PanZoom control's draw mehtod, the image paths
for the nav control images are hard-coded. You can either change the
element's path to the image by overwritting the draw method in the control
class or you can just replace the original images in openlayers/img
directory with the ones you want to use.
...........
93 this._addButton("panup", "north-mini.png", centered, sz);
94 px.y = centered.y+sz.h;
95 this._addButton("panleft", "west-mini.png", px, sz);
96 this._addButton("panright", "east-mini.png", px.add(sz.w, 0),
sz);
97 this._addButton("pandown", "south-mini.png",
98 centered.add(0, sz.h*2), sz);
99 this._addButton("zoomin", "zoom-plus-mini.png",
100 centered.add(0, sz.h*3+5), sz);
101 this._addButton("zoomworld", "zoom-world-mini.png",
102 centered.add(0, sz.h*4+5), sz);
103 this._addButton("zoomout", "zoom-minus-mini.png",
104 centered.add(0, sz.h*5+5), sz);
105 return this.div;
...........
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/modifying-the-openlayer-default-style-tp5752046p5752917.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.
More information about the Dev
mailing list