Hi all,

I have some markers on a map which represent story content. The popups that open on a marker click are way too small for the page, so its not readable.
How is the size/type of the popup controlled (in which file or parameter)? I would either like to controll the popup size or have new window opened.

Thanks for the nice work!

Comments

jpulles’s picture

Assigned: Unassigned » jpulles
Status: Active » Postponed (maintainer needs more info)

At http://dev.openlayers.org/releases/OpenLayers-2.7/doc/apidocs/files/Open... it shows that popupSize is a parameter for a GeoRSS layer. However, at the moment this is not implemented by the mapping kit. But I'm not certain if you are using it with a GeoRSS layer, are you?

jpulles’s picture

Status: Postponed (maintainer needs more info) » Fixed

In the dev version you can now set the popupsize for a georss layer as e.g. "georss|user/feed|Layertitle||useFeedTitle=false,popupSize={w:50,h:50}". Note that case is important in this case; it must be the same as in http://dev.openlayers.org/apidocs/files/OpenLayers/Layer/GeoRSS-js.html. The 4th layer parameter can also include other options found on that page.

mausschubser’s picture

Yes, I was using georss, thanks. Am I getting this right: The maxResolution is the resolution of the mapcontext used?

Would it be possible to have the item clicked on open a new browser window or tab?

mausschubser’s picture

Title: Marker Popups » Marker Popups - CSS
Category: support » feature

The marker popups seem to include http://openlayers.org/api/2.7/theme/default/style.css for styling. It would be nice to have a local copy to influence the styles.

jpulles’s picture

In case of OpenLayers, the maxResolution is the number of map units per pixel. http://trac.openlayers.org/wiki/SettingZoomLevels may give you some more explanation.

It is possible to open a new browser window when clicking an item, but this is not a configurable option; you'll have to fix it yourself ;-)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.