Re: [OpenLayers-Dev] Specifying stylemap in Vector layout screws up IE in 2.8 and 2.9RC1

2010-04-05 Thread XinGang Li
Yes, this may be a bug of the VML render, you can set labelAlign attribute with two letters, such as cm to avoid this error. I have created a ticket: http://trac.openlayers.org/ticket/2563 Thanks for your report! Li XinGang EMail: slinav...@gmail.com Blog: avlee.cnblogs.com Site:

Re: [OpenLayers-Dev] Problems trying to move a Feature (Marker)

2010-04-01 Thread XinGang Li
After changed the geometry of the feature, you should redraw the feature. Li XinGang EMail: slinav...@gmail.com Blog: avlee.cnblogs.com Site:www.mapboost.org On Fri, Apr 2, 2010 at 6:43 AM, CĂșmar Cueva qmarq...@gmail.com wrote: Hi guys, Please I need your help. I want to move a Marker

Re: [OpenLayers-Dev] Ticket #1861 and CLA from avlee

2010-02-06 Thread XinGang Li
OK. I will send a signed CLA by e-mail. Li XinGang EMail: slinav...@gmail.com Blog: avlee.cnblogs.com Site:www.mapboost.org On Sat, Feb 6, 2010 at 3:24 AM, Tim Schaub tsch...@opengeo.org wrote: Hey- I've just closed ticket #1861 based on a contribution from Li XinGang (avlee). It

[OpenLayers-Dev] Improve the panel control

2010-02-06 Thread XinGang Li
When the child controls of Panel control be activated or inactivated, the Panel control will always re-draw the child controls, and do not call the child controls's draw method to generate the DOM element of the control. So we can not add some controls with complex UI to the Panel control, such

Re: [OpenLayers-Dev] Zoom Event

2010-01-27 Thread XinGang Li
zoomend Li XinGang EMail: slinav...@gmail.com Blog: avlee.cnblogs.com Site:www.mapboost.org On Wed, Jan 27, 2010 at 4:47 PM, Dom Lehr dominic.l...@googlemail.comwrote: Hey guys, I tried googleing it, but I can t find it... How is the event called if zoom changes? I wanne do sth

Re: [OpenLayers-Dev] Zoom Event

2010-01-27 Thread XinGang Li
layer.events.on({ moveend: function(e) { if (e.zoomChanged) { doSth(); } } }); On Wed, Jan 27, 2010 at 4:56 PM, XinGang Li slinav...@gmail.com wrote: zoomend Li XinGang EMail

Re: [OpenLayers-Dev] [...@pointcarbon.com: [OpenLayers-Trac] Error in Marker.js]

2009-10-26 Thread XinGang Li
If attach events to the marker element really can cause performance problems, we can create the events object in the marker's constructor without attach the events to the DOM element, and than attach the events to the DOM element in the draw method. initialize: function(lonlat, icon) {

Re: [OpenLayers-Dev] .JPG image in OverviewMap

2009-05-14 Thread XinGang Li
Try this example: html xmlns=http://www.w3.org/1999/xhtml; head titleOpenLayers Image Layer Example/title link rel=stylesheet href=../theme/default/style.css type=text/css / link rel=stylesheet href=style.css type=text/css / script src=../lib/OpenLayers.js/script script

Re: [OpenLayers-Dev] .JPG image in OverviewMap

2009-05-05 Thread XinGang Li
You can use the OpenLayers.Layer.Image with one zoom level in your overview map, like this: var imageLayer = new OpenLayers.Layer.Image( ImageLayer, test.jpg, new OpenLayers.Size(150, 150), {numZoomLevels: 1, alwaysInRange:

Re: [OpenLayers-Dev] Making BBOX strategy smarter - part2

2008-11-13 Thread XinGang Li
For large data, may be you can change the ratio depend on the map zoom level. On Thu, Nov 13, 2008 at 7:37 PM, Ivan Grcic [EMAIL PROTECTED] wrote: ...and now when i lowered the ratio on bbox strategy, i can see big difference in refreshing the data (discarding old ones, fetchin new ones)

[OpenLayers-Dev] When zoom changed, the markers screen position do not changed

2008-10-15 Thread XinGang Li
With the patch from Tickets: #1759 http://trac.openlayers.org/ticket/1759, when zoom changed, the markers position on map do not be changed. See tickets #1766 http://trac.openlayers.org/ticket/1766 -- Li XinGang EMail: [EMAIL PROTECTED] Blog: avlee.cnblogs.com Site:www.mapboost.org.cn

[OpenLayers-Dev] Why check the fileType of ajax request for xml?

2008-03-11 Thread XinGang Li
In the layers that load data from xml stream, we always check the fileType like this: requestSuccess:function(request) { if (this.features) { var doc = request.responseXML; if (!doc || request.fileType!=XML) { doc =

Re: [OpenLayers-Dev] OpenLayers.loadURL( ) : params - Params on

2008-03-06 Thread XinGang Li
For the trunk, you must use params like this: var params = { 'toto': blabla, 'titi': haha }; When calling this function the 'params' parameter doesn't work. I think I've found why : When you call OpenLayers.loadURL(url, param,... ) and you give string like param =

Re: [OpenLayers-Dev] svn build problems

2008-03-04 Thread XinGang Li
Christopher Schmidt wrote: On Mon, Mar 03, 2008 at 04:18:39PM -0500, Stephen Woodbridge wrote: Hi all, I have been getting the following issue in svn trying to run ./build.py full.cfg [EMAIL PROTECTED]:~/work/openlayers/ol-svn/trunk/openlayers/build$ ./build.py full.cfg

[OpenLayers-Dev] A little patch for Panel and ZoomBox

2008-02-18 Thread XinGang Li
Changed the order of activate/deactivate controls in the activateControl method of the panel. Index: lib/OpenLayers/Control/Panel.js === --- lib/OpenLayers/Control/Panel.js(revision 6324) +++ lib/OpenLayers/Control/Panel.js

[OpenLayers-Dev] Avoid singleTile layer flash

2007-12-05 Thread XinGang Li
This is a simple patch to avoid the flash problem when using singleTile layer. --- E:/OpenLayers-svn/lib/OpenLayers/Tile/Image.jsWed Nov 28 14:13:24 2007 +++ E:/OpenLayers-2.5/lib/OpenLayers/Tile/Image.jsThu Dec 06 09:52:54 2007 @@ -120,8 +120,13 @@ this.url =