Closed (fixed)
Project:
Mapping kit
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
14 Nov 2008 at 16:33 UTC
Updated:
6 Dec 2008 at 19:51 UTC
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
Comment #1
jpulles commentedAt 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?
Comment #2
jpulles commentedIn 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.
Comment #3
mausschubser commentedYes, 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?
Comment #4
mausschubser commentedThe 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.
Comment #5
jpulles commentedIn 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 ;-)