[OpenLayers-Users] Problem with marker Georss on Google maps base layer

2009-02-16 Thread Marcello Brunaldi
I have a problem with the display of the marker layer, because the coordinates do not match this is my code: function init() { options={ projection: new OpenLayers.Projection(EPSG:900913), displayProjection: new OpenLayers.Projection(EPSG:4326),

Re: [OpenLayers-Users] Problem with marker Georss on Google maps base layer

2009-02-16 Thread Marcello Brunaldi
Thanks for! I also tried to set 'projection', the provisions of the marker changes the coordinates but still do not match. 2009/2/16 JuergenL o...@albspotter.org new1[0] = new OpenLayers.Layer.GeoRSS( 'GeoRSS', 'georss/blu.xml', {'icon':color[0]} ); You could try to set a projection

[OpenLayers-Users] Problem with marker in GeoRSS

2008-07-23 Thread Marcello Brunaldi
Hello everyone I have a problem to change the icon and the size of the marker when I use OpenLayers.Layer.GeoRSS, any size and any icon cheque with OpenLayers.Icon is not taken. Show always the marker by default. This is my code : yelp = new OpenLayers.Icon(blu.png, new OpenLayers.Size(20,29));

Re: [OpenLayers-Users] Problem with Marker

2008-07-11 Thread Marcello Brunaldi
I tryed this code but also this doesn't work it continues to take marker as default,I have also considered your example but it isn't useful to solve my problem var newl = new OpenLayers.Layer.GeoRSS( 'Yelp GeoRSS', 'yelp-georss.xml', {'icon':yelp}); Alan wrote: And that: var newl = new

Re: [OpenLayers-Users] Problem with marker

2008-07-11 Thread realjax
Try this: yelp = new OpenLayers.Icon(blu.png, new OpenLayers.Size(20,29)); new1 = new OpenLayers.Layer.GeoRSS( 'GeoRSS', 'georss.xml', options); new1.icon = yelp -- View this message in context: http://www.nabble.com/Problem-with-marker-tp18217050p18405500.html Sent from the

Re: [OpenLayers-Users] Problem with marker

2008-07-09 Thread Marcello Brunaldi
That does not work, It always take the marker default. yelp = new OpenLayers.Icon(blu.png, new OpenLayers.Size(20,29)); var options = { 'icon': yelp }; new1 = new OpenLayers.Layer.GeoRSS( 'GeoRSS', 'georss.xml', options); ___

Re: [OpenLayers-Users] Problem with marker

2008-07-09 Thread Alan Boudreault
And that: var newl = new OpenLayers.Layer.GeoRSS( 'Yelp GeoRSS', 'yelp-georss.xml', {'icon':yelp}); Please see this example: http://openlayers.org/dev/examples/georss-markers.html Alan Marcello Brunaldi wrote: That does not work, It always take the marker default. yelp = new

[OpenLayers-Users] Problem with marker

2008-07-08 Thread Marcello Brunaldi
Hello everyone I have a problem to change the icon and the size of the marker when I use OpenLayers.Layer.GeoRSS, any size and any icon cheque with OpenLayers.Icon is not taken. Show always the marker by default. This is the code. yelp = new OpenLayers.Icon(blu.png, new OpenLayers.Size(20,29));

Re: [OpenLayers-Users] Problem with marker

2008-07-08 Thread Alan Boudreault
Hi, You should try this: var options = { icon: yelp }; new1 = new OpenLayers.Layer.GeoRSS( 'GeoRSS', 'georss.xml', options); Alan Marcello Brunaldi wrote: Hello everyone I have a problem to change the icon and the size of the marker when I use OpenLayers.Layer.GeoRSS, any size and

Re: [OpenLayers-Users] Problem with marker

2008-07-08 Thread Alan Boudreault
small mistake, var options = { 'icon': yelp // not icon: yelp }; Alan Alan Boudreault wrote: Hi, You should try this: var options = { icon: yelp }; new1 = new OpenLayers.Layer.GeoRSS( 'GeoRSS', 'georss.xml', options); Alan Marcello Brunaldi wrote: Hello everyone

[OpenLayers-Users] Problem with marker

2008-07-01 Thread Marcello Brunaldi
Hello everyone I have a problem to change the icon and the size of the marker when I use OpenLayers.Layer.GeoRSS, any size and any icon cheque with OpenLayers.Icon is not taken. Show always the marker by default. This is the code. yelp = new OpenLayers.Icon(blu.png, new OpenLayers.Size(20,29));