x

Re: 1001x - OpenLayers - popup-size


Geschrieben von Lübeck (Gast) am 18. August 2012 14:58:03: [flux]

Als Antwort auf: 1001x - OpenLayers - popup-size geschrieben von Lübeck (Gast) am 17. August 2012 18:46:

Hi !

das mit einfach - war heute morgen auf die Schelle bevor ich los mußte und vom Smarty beantwortet wurde.

Habe jetzt nochmal in www.tappenbeck.net/osm/sandbox/speyer/js/util.js geschaut und danach müßte es FramedCloud sein:

function␣addMarker(layer,␣lon,␣lat,␣popupContentHTML,␣showPopupOnLoad,␣iconId)␣{
//␣Koordinaten␣in␣LonLat␣umwandeln
var␣ll␣=␣new␣OpenLayers.LonLat(Lon2Merc(lon),␣Lat2Merc(lat));
//␣Feature␣erstellen␣und␣konfigurieren␣(Popup␣und␣Marker)
var␣feature␣=␣new␣OpenLayers.Feature(layer,␣ll);
feature.closeBox␣=␣true;
feature.popupClass␣=␣OpenLayers.Class(OpenLayers.Popup.FramedCloud,␣{minSize:␣new␣OpenLayers.Size(200,␣120)␣}␣);
feature.data.popupContentHTML␣=␣popupContentHTML;
feature.data.overflow␣=␣"auto";
feature.data.icon␣=␣makeIcon(iconId);
...

Gruß Jan :-)