Tag Info

Hot answers tagged

3

what about <div id="tooltip"></div> -- map.events.register("mousemove", map, function (e) { var position = map.getLonLatFromViewPortPx(e.xy); OpenLayers.Util.getElement("tooltip").innerHTML = "<label>Latitude: " + position.lat + "</label><br/><label>Longitude: " + position.lon + "</label>"; ...


2

(Comment reposted as an answer as per Underdark's request) There is an old/existing feature request for this but I don't think it has been implemented (certainly not in 2.6). It certainly would be nice to have


1

You appear to be encountering a known limit when converting line and polygon labels to KML. This is documented as Technical Article 43000: Labels do not appear in Google Earth after converting to KML: This is a known limit. Google Earth only displays labels for point features (placemarks). To display labels for line or polygon features in Google ...


1

You'll need to study the renderer in GeoTools which calls the labeling subsystem (https://github.com/geotools/geotools/tree/master/modules/library/render/src/main/java/org/geotools/renderer/label). Before you go too far down that route feel free to write a proposal and discuss it on the developers list.


1

Yes. In Layer properties, you can use Labels -> Placement -> Using perimeter. You can choose Position as 'Below line' and adjust the Distance to achieve something like below.



Only top voted, non community-wiki answers of a minimum length are eligible