png images, vector layers, pop-ups, and IE

4 messages Options
Embed this post
Permalink
Wendell Turner

png images, vector layers, pop-ups, and IE

Reply Threaded More More options
Print post
Permalink

I can't get pop-ups to appear when using png images on a
vector layer in IE.  I have a vector layer with points that
have .png images.  The images show properly in both Firefox
and IE.  The images have pop-ups enabled.

It works fine in Firefox (pop-ups actually pop up), but in
IE the mouseover turns the cursor into an insert symbol,
similar to 'I'.  There is no mouse capability on the symbol
in IE.

Other vector layers with drawn polygons work fine in IE, and
pop-ups occur as normal.

Is there a way to fix this so mouse-enabled pop-ups appear
when using png images in IE?

Wendell

_______________________________________________
Users mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/users
Eric Lemoine-2-2

Re: png images, vector layers, pop-ups, and IE

Reply Threaded More More options
Print post
Permalink
On Thursday, October 29, 2009, Wendell Turner <[hidden email]> wrote:

>
> I can't get pop-ups to appear when using png images on a
> vector layer in IE.  I have a vector layer with points that
> have .png images.  The images show properly in both Firefox
> and IE.  The images have pop-ups enabled.
>
> It works fine in Firefox (pop-ups actually pop up), but in
> IE the mouseover turns the cursor into an insert symbol,
> similar to 'I'.  There is no mouse capability on the symbol
> in IE.
>
> Other vector layers with drawn polygons work fine in IE, and
> pop-ups occur as normal.
>
> Is there a way to fix this so mouse-enabled pop-ups appear
> when using png images in IE?


Hi

Are you using Control.SelectFeature?

Cheers,

--
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : [hidden email]
http://www.camptocamp.com
_______________________________________________
Users mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/users
Wendell Turner

Re: png images, vector layers, pop-ups, and IE

Reply Threaded More More options
Print post
Permalink
On Fri, Oct 30, 2009 at 06:30:45AM +0100, Eric Lemoine wrote:

> On Thursday, October 29, 2009, Wendell Turner <[hidden email]> wrote:
> >
> > I can't get pop-ups to appear when using png images on a
> > vector layer in IE.  I have a vector layer with points that
> > have .png images.  The images show properly in both Firefox
> > and IE.  The images have pop-ups enabled.
> >
> > It works fine in Firefox (pop-ups actually pop up), but in
> > IE the mouseover turns the cursor into an insert symbol,
> > similar to 'I'.  There is no mouse capability on the symbol
> > in IE.
> >
> > Other vector layers with drawn polygons work fine in IE, and
> > pop-ups occur as normal.
> >
> > Is there a way to fix this so mouse-enabled pop-ups appear
> > when using png images in IE?
>
>
> Hi
>
> Are you using Control.SelectFeature?

Yes.

Wendell

_______________________________________________
Users mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/users
Eric Lemoine-2-2

Re: png images, vector layers, pop-ups, and IE

Reply Threaded More More options
Print post
Permalink
On Fri, Oct 30, 2009 at 3:36 PM, Wendell Turner <[hidden email]> wrote:

> On Fri, Oct 30, 2009 at 06:30:45AM +0100, Eric Lemoine wrote:
>> On Thursday, October 29, 2009, Wendell Turner <[hidden email]> wrote:
>> >
>> > I can't get pop-ups to appear when using png images on a
>> > vector layer in IE.  I have a vector layer with points that
>> > have .png images.  The images show properly in both Firefox
>> > and IE.  The images have pop-ups enabled.
>> >
>> > It works fine in Firefox (pop-ups actually pop up), but in
>> > IE the mouseover turns the cursor into an insert symbol,
>> > similar to 'I'.  There is no mouse capability on the symbol
>> > in IE.
>> >
>> > Other vector layers with drawn polygons work fine in IE, and
>> > pop-ups occur as normal.
>> >
>> > Is there a way to fix this so mouse-enabled pop-ups appear
>> > when using png images in IE?
>>
>>
>> Hi
>>
>> Are you using Control.SelectFeature?
>
> Yes.
I modified the select-feature-openpopup.html so points with external
graphics can be drawn and selected (see attached patch). The example
works as expected in IE8. Can you modify the example yourself and
reproduce your problem?

Cheers,
--
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : [hidden email]
http://www.camptocamp.com

[select-feature-openpopup.patch]

diff --git examples/select-feature-openpopup.html examples/select-feature-openpopup.html
index 1493189..28266b0 100644
--- examples/select-feature-openpopup.html
+++ examples/select-feature-openpopup.html
@@ -34,8 +34,12 @@
             var wmsLayer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
                 "http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'});
 
-            var polygonLayer = new OpenLayers.Layer.Vector("Polygon Layer");
-
+            var polygonLayer = new OpenLayers.Layer.Vector("Polygon Layer", {
+                styleMap: new OpenLayers.StyleMap({
+                    externalGraphic: "../img/marker-gold.png",
+                    pointRadius: 10
+                })
+            });
             map.addLayers([wmsLayer, polygonLayer]);
             map.addControl(new OpenLayers.Control.LayerSwitcher());
             map.addControl(new OpenLayers.Control.MousePosition());
@@ -45,6 +49,8 @@
             drawControls = {
                 polygon: new OpenLayers.Control.DrawFeature(polygonLayer,
                             OpenLayers.Handler.Polygon),
+                point: new OpenLayers.Control.DrawFeature(polygonLayer,
+                            OpenLayers.Handler.Point),
                 select: selectControl
             };
             
@@ -87,6 +93,11 @@
             <label for="polygonToggle">draw polygon</label>
         </li>
         <li>
+            <input type="radio" name="type" value="point" id="polygonToggle"
+                   onclick="toggleControl(this);" />
+            <label for="polygonToggle">draw point</label>
+        </li>
+        <li>
             <input type="radio" name="type" value="select" id="selectToggle"
                    onclick="toggleControl(this);" />
             <label for="selectToggle">select polygon on click</label>


_______________________________________________
Users mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/users