I just started using Mapstraction, and must say it''s a timesaver. I got most features working correctly, except for setLabel on markers with OpenLayers. The label does not show up. Even the sandbox demo labels don''t show (event after remove the setIcon which doesn''t load). Are they supposed to? Did this break at some version? I tried Safari, Google and Firefox. Any thoughts? Thanks, John
I think it''s probably because OpenLayers makers don''t give you tooltips by default, and the implementing them from scratch tends to be a little code heavy. I''d like to see some kind of solution. I wonder if the usual mouseover tooltip is the way to go, though, given the growing number of devices without a mouse. Should a new implementation copy this increasingly nonfunctional behavior? -dylan- On Mon, Apr 30, 2012 at 6:13 PM, John Szatmary < mapstraction at janos.szatmary.name> wrote:> I just started using Mapstraction, and must say it''s a timesaver. > > I got most features working correctly, except for setLabel on markers with > OpenLayers. > > The label does not show up. Even the sandbox demo labels don''t show (event > after remove the setIcon which doesn''t load). > > Are they supposed to? Did this break at some version? I tried Safari, > Google and Firefox. > > Any thoughts? > > Thanks, > > John > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20120430/e3ded9c1/attachment.htm>
I don''t think labels are "tooltips". I think they are strings which are supposed to show up aside/below (whatever) the marker. At least that''s the impression I get by looking at the sandbox demo, which includes HTML as part of the label. Given that the sandbox demo uses OpenLayers, I would assume someone tested this and found it to be working at some point, otherwise why demo it? On Apr 30, 2012, at 9:38 PM, Dylan Kuhn wrote:> I think it''s probably because OpenLayers makers don''t give you tooltips by default, and the implementing them from scratch tends to be a little code heavy. > > I''d like to see some kind of solution. I wonder if the usual mouseover tooltip is the way to go, though, given the growing number of devices without a mouse. Should a new implementation copy this increasingly nonfunctional behavior? > > -dylan- > > On Mon, Apr 30, 2012 at 6:13 PM, John Szatmary <mapstraction at janos.szatmary.name> wrote: > I just started using Mapstraction, and must say it''s a timesaver. > > I got most features working correctly, except for setLabel on markers with OpenLayers. > > The label does not show up. Even the sandbox demo labels don''t show (event after remove the setIcon which doesn''t load). > > Are they supposed to? Did this break at some version? I tried Safari, Google and Firefox. > > Any thoughts? > > Thanks, > > John > > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20120430/afe828b7/attachment.htm>
The OpenLayers examples do show it''s labeling feature, so I''m going to guess something''s broken in Mapstraction. On Apr 30, 2012, at 9:59 PM, John Szatmary wrote:> I don''t think labels are "tooltips". I think they are strings which are supposed to show up aside/below (whatever) the marker. > > At least that''s the impression I get by looking at the sandbox demo, which includes HTML as part of the label. > > Given that the sandbox demo uses OpenLayers, I would assume someone tested this and found it to be working at some point, otherwise why demo it? > > On Apr 30, 2012, at 9:38 PM, Dylan Kuhn wrote: > >> I think it''s probably because OpenLayers makers don''t give you tooltips by default, and the implementing them from scratch tends to be a little code heavy. >> >> I''d like to see some kind of solution. I wonder if the usual mouseover tooltip is the way to go, though, given the growing number of devices without a mouse. Should a new implementation copy this increasingly nonfunctional behavior? >> >> -dylan- >> >> On Mon, Apr 30, 2012 at 6:13 PM, John Szatmary <mapstraction at janos.szatmary.name> wrote: >> I just started using Mapstraction, and must say it''s a timesaver. >> >> I got most features working correctly, except for setLabel on markers with OpenLayers. >> >> The label does not show up. Even the sandbox demo labels don''t show (event after remove the setIcon which doesn''t load). >> >> Are they supposed to? Did this break at some version? I tried Safari, Google and Firefox. >> >> Any thoughts? >> >> Thanks, >> >> John >> >> _______________________________________________ >> Mapstraction mailing list >> Mapstraction at lists.mapstraction.com >> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com > > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20120430/19cc874c/attachment.htm>
The sandbox is kind of broken too - it loads a defunct version of mapstraction and the custom icon is missing. The HTML in the label does reflect an idea that it can be handled differently by different providers, though. The Google example renders it as a tooltip, including the HTML tags. I don''t recall ever seeing the OpenLayers example render the label, but I like your idea of putting it on the map next to the marker. The Yahoo example does that. -dylan- On Mon, Apr 30, 2012 at 7:04 PM, John Szatmary < mapstraction at janos.szatmary.name> wrote:> The OpenLayers examples do show it''s labeling feature, so I''m going to > guess something''s broken in Mapstraction. > > On Apr 30, 2012, at 9:59 PM, John Szatmary wrote: > > I don''t think labels are "tooltips". I think they are strings which are > supposed to show up aside/below (whatever) the marker. > > At least that''s the impression I get by looking at the sandbox demo, which > includes HTML as part of the label. > > Given that the sandbox demo uses OpenLayers, I would assume someone tested > this and found it to be working at some point, otherwise why demo it? > > On Apr 30, 2012, at 9:38 PM, Dylan Kuhn wrote: > > I think it''s probably because OpenLayers makers don''t give you tooltips by > default, and the implementing them from scratch tends to be a little code > heavy. > > I''d like to see some kind of solution. I wonder if the usual mouseover > tooltip is the way to go, though, given the growing number of devices > without a mouse. Should a new implementation copy this increasingly > nonfunctional behavior? > > -dylan- > > On Mon, Apr 30, 2012 at 6:13 PM, John Szatmary < > mapstraction at janos.szatmary.name> wrote: > >> I just started using Mapstraction, and must say it''s a timesaver. >> >> I got most features working correctly, except for setLabel on markers >> with OpenLayers. >> >> The label does not show up. Even the sandbox demo labels don''t show >> (event after remove the setIcon which doesn''t load). >> >> Are they supposed to? Did this break at some version? I tried Safari, >> Google and Firefox. >> >> Any thoughts? >> >> Thanks, >> >> John >> >> _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com > > > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com > > > > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20120430/064b3f76/attachment-0001.htm>
The OpenLayers demos show this capability. It looks like they''re done with "symbolizers". Abstracting it to a "label" seems to fit into Mapstraction''s goal. On Apr 30, 2012, at 11:05 PM, Dylan Kuhn wrote:> The sandbox is kind of broken too - it loads a defunct version of mapstraction and the custom icon is missing. The HTML in the label does reflect an idea that it can be handled differently by different providers, though. The Google example renders it as a tooltip, including the HTML tags. I don''t recall ever seeing the OpenLayers example render the label, but I like your idea of putting it on the map next to the marker. The Yahoo example does that. > > -dylan- > > On Mon, Apr 30, 2012 at 7:04 PM, John Szatmary <mapstraction at janos.szatmary.name> wrote: > The OpenLayers examples do show it''s labeling feature, so I''m going to guess something''s broken in Mapstraction. > > On Apr 30, 2012, at 9:59 PM, John Szatmary wrote: > >> I don''t think labels are "tooltips". I think they are strings which are supposed to show up aside/below (whatever) the marker. >> >> At least that''s the impression I get by looking at the sandbox demo, which includes HTML as part of the label. >> >> Given that the sandbox demo uses OpenLayers, I would assume someone tested this and found it to be working at some point, otherwise why demo it? >> >> On Apr 30, 2012, at 9:38 PM, Dylan Kuhn wrote: >> >>> I think it''s probably because OpenLayers makers don''t give you tooltips by default, and the implementing them from scratch tends to be a little code heavy. >>> >>> I''d like to see some kind of solution. I wonder if the usual mouseover tooltip is the way to go, though, given the growing number of devices without a mouse. Should a new implementation copy this increasingly nonfunctional behavior? >>> >>> -dylan- >>> >>> On Mon, Apr 30, 2012 at 6:13 PM, John Szatmary <mapstraction at janos.szatmary.name> wrote: >>> I just started using Mapstraction, and must say it''s a timesaver. >>> >>> I got most features working correctly, except for setLabel on markers with OpenLayers. >>> >>> The label does not show up. Even the sandbox demo labels don''t show (event after remove the setIcon which doesn''t load). >>> >>> Are they supposed to? Did this break at some version? I tried Safari, Google and Firefox. >>> >>> Any thoughts? >>> >>> Thanks, >>> >>> John >>> >>> _______________________________________________ >>> Mapstraction mailing list >>> Mapstraction at lists.mapstraction.com >>> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >> >> _______________________________________________ >> Mapstraction mailing list >> Mapstraction at lists.mapstraction.com >> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com > > > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com > > > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20120430/78bcd226/attachment.htm>
I agree - let''s start an issue: https://github.com/mapstraction/mxn/issues/136. On Mon, Apr 30, 2012 at 8:09 PM, John Szatmary < mapstraction at janos.szatmary.name> wrote:> The OpenLayers demos show this capability. It looks like they''re done with > "symbolizers". Abstracting it to a "label" seems to fit into Mapstraction''s > goal. > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20120430/c3ad3f4a/attachment.htm>
Hi, Dylan is right, OpenLayers doesn''t implement marker''s label. There was an issue about it on OL trac but thos one was closed : http://trac.osgeo.org/openlayers/ticket/751 It seems that OL authors are saying that labels can be done with popup on hover event. That''s the reason why this functionality is not implemented for now. ++ b_b Le 01/05/2012 03:38, Dylan Kuhn a ?crit :> I think it''s probably because OpenLayers makers don''t give you tooltips > by default, and the implementing them from scratch tends to be a little > code heavy. > > I''d like to see some kind of solution. I wonder if the usual mouseover > tooltip is the way to go, though, given the growing number of devices > without a mouse. Should a new implementation copy this increasingly > nonfunctional behavior? > > -dylan- >
On the OL examples: http://openlayers.org/dev/examples/vector-features-with-text.html http://openlayers.org/dev/examples/symbolizers-fill-stroke-graphic.html They are either tagged with "label" or even referred to as "labels", e.g.: "OpenLayers Labeled features example" On May 1, 2012, at 4:29 AM, Bruno Bergot wrote:> Hi, > > Dylan is right, OpenLayers doesn''t implement marker''s label. There was an issue about it on OL trac but thos one was closed : > > http://trac.osgeo.org/openlayers/ticket/751 > > It seems that OL authors are saying that labels can be done with popup on hover event. > > That''s the reason why this functionality is not implemented for now. > > ++ > b_b > > Le 01/05/2012 03:38, Dylan Kuhn a ?crit : >> I think it''s probably because OpenLayers makers don''t give you tooltips >> by default, and the implementing them from scratch tends to be a little >> code heavy. >> >> I''d like to see some kind of solution. I wonder if the usual mouseover >> tooltip is the way to go, though, given the growing number of devices >> without a mouse. Should a new implementation copy this increasingly >> nonfunctional behavior? >> >> -dylan- >> > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com
Hi, I think that we can continue this discussion here ;) https://github.com/mapstraction/mxn/issues/136#issuecomment-5438048 ++ b_b Le 01/05/2012 14:56, John Szatmary a ?crit :> On the OL examples: > > http://openlayers.org/dev/examples/vector-features-with-text.html > > http://openlayers.org/dev/examples/symbolizers-fill-stroke-graphic.html > > They are either tagged with "label" or even referred to as "labels", e.g.: > > "OpenLayers Labeled features example" >