[OpenLayers-Dev] Car icon and details formated with html instead of plain text - please help me

Mikulicic, Vladimir Vladimir.Mikulicic at br.de
Fri Sep 6 04:42:37 PDT 2013

Sorry Przmek,

the link's not working:

Here is the right one: http://www.br.de/wetter

(The map is a custom OSM rendered Map with mapnik.... but the Markers are set with Openlayers)

Von: Mikulicic, Vladimir
Gesendet: Freitag, 6. September 2013 13:38
An: openlayers-dev at lists.osgeo.org
Betreff: AW: [OpenLayers-Dev] Car icon and details formated with html instead of        plain text - please help me

Hi Przemek,

this is, in my opinion a big problem of Openlayers. We got the same problem too. Before we used Bing-Maps API, and there it's normal to create HTML-Markers.
I am wondering that in the OL-Community is no need for HTML Markers ....excpecially Markers which could be completly controlled.
The same increddible problem, in my opinion are the Popups... its horrible to see, that the popup-background is an background-image that comes from the OL-API.

But back to your Problem... we solved that ... like this:


This is the only Implementation i found, that deals with HTML and u can use it like Markers.

Our solution with HTML-Markers is:   http://www.br.de/weather   (Map with html Markers)

Von: openlayers-dev-bounces at lists.osgeo.org [openlayers-dev-bounces at lists.osgeo.org]" im Auftrag von "Przemysław Prokopow [przem at post.pl]
Gesendet: Freitag, 6. September 2013 11:51
An: openlayers-dev at lists.osgeo.org
Betreff: [OpenLayers-Dev] Car icon and details formated with html instead of    plain text - please help me

I use OpenLayers libary in my project to display objects on a map.

I wounder if anybody will be able to help me with my problem.

I need to show a car icon with following details:
- car name (label above a car icon)
- car icon
- status bar (one line bar with different color showing a status, eg. red
bar means alarm, green means car is moving, grey car is parked)
- car parameters (text with car speed, fuel level, distance and rpm)

OpenLayers libary let you to display one icon and one plain text.
There is no way to program in OpenLayers text a status bar and text above
and below needs to be the same color, and to make vertical space you need to
use some characters, eg. dots that looks ugly on the interface.

I need to modify OpenLayers source code and implement the design as I need.
Probably the way to change a OpenLayers source code would be to change in
the proper place JavaScript source, so it would accept HTML instead of only
plain text. Then use HTML to implement a design.

Could you please advice me, where in a source code should I look to modify
the code?
What do you think about such modification? Is it possible and do you
foreseeing any problems with it?

I would greatly appreciate any advice or help from you.

Dev mailing list
Dev at lists.osgeo.org
Bayerischer Rundfunk; Rundfunkplatz 1; 80335 München
Telefon: +49 89 590001; E-Mail: info at BR.de; Website: http://www.BR.de

More information about the Dev mailing list