Personal tools
You are here: Home Forums Plone Google Maps Getting zoom information
Navigation
Log in


Forgot your password?
New user?
 
Document Actions

Getting zoom information

Up to Plone Google Maps

Getting zoom information

Posted by John Etherton at July 03. 2007

First of all thanks for a wonderful product. qPloneGoogleMaps is awesome!


 


 


So I'm trying to get the map portlet and the maps_view to show the map at the zoom I had it set when I set the lat,lon of the object. I've found that i can use:


 


 


<span tal:define="mapoptions context/@@MapView;
                      mapzoom python:mapoptions and mapoptions.getMapZoom();"
          tal:replace="structure python:here.maps_markers(longlat, loc=longlat[0].geoLocation, zoom=mapzoom , node='portlet_map', auto='None')" />


 


 


to get the map to render at the zoom level I set it at. But then when I view the site as an anonymous user it says that I have to log in to view the page. If I take out the reference to context/@@MapView then the permissions issue goes away.


 


 


I'm pretty new to Plone so I'm not exactly sure what's going on, but I was wondering if there's a way I could get the zoom info out without needing to log in.


 


 


Thanks,


 


 


John Etherton


Re: Getting zoom information

Posted by Vitaliy Podoba at August 21. 2007

Hi, John!


Sorry for so late reply.


Actually 'MapView' view was designed for using on geo_location tab. So it was registered with permission


'cmf.ModifyPortalContent':


file /configure.zcml:


<browser:page

for="*"
name="MapView"
class=".browser.map.GEOMapView"
permission="cmf.ModifyPortalContent"
allowed_interface=".interfaces.geomap.IGEOMapView"
/>

For using 'MapView' on public page you have to change attribute permission to 'zope2.View'.

 


 


 


Powered by Ploneboard