[OSM-dev] how to position nominatim icon?
bernhard zwischenbrugger
bz at datenkueche.com
Thu Sep 2 17:32:27 BST 2010
Hi again
I have seen, that nominatim now gives an icon for search results like in
this example:
<place place_id='10714' osm_type='node' osm_id='17328659'
boundingbox="48.0588264465332,48.3187141418457,16.2443943023682,16.5288238525391"
lat='48.2092252' lon='16.3736665' display_name='Wien, Vienna,
Österreich, Europa' class='place' type='city'
icon='http://nominatim.openstreetmap.org/images/mapicons/poi_place_city.p.20.png'/>
The icon is something like a flag.
The _BASE_ of the flag should show the location.
Sometimes there are other icons that use the _CENTER_ of the icon to
descibes a location.
If the icon uses the base I have to move the icon like:
top=-iconheight
If the center is usered I have to move the icons like:
top=-iconheight/2
How can my program know where to move the icon?
I hope you are able to understand the question.
Here you can try this:
http://www.khtml.org/osm/v0.82/index.php
(search and mouseover)
lg, Bernhard
More information about the dev
mailing list