[Community] OpenLayers in Plone 3
Steve Coleman-Williams
steve at eryr.com
Thu Apr 24 15:26:23 EEST 2008
Are we thinking of the strict Plone3 way of doing things with GS or what??
How ever we decide I will try and get a simple "lets bash the libraries into
zodb" done tonight in a true Plone3 GS way.
Steve Coleman-Williams
E-mail: steve at eryr.com
Phone (work): (01970) 613438
Phone (Mobile): 07774522282
Please do not print this e-mail unless absolutely necessary - SAVE ENERGY
and PAPER
---
non facias malum ut inde fiat bonum
-----Original Message-----
From: community-bounces at lists.gispython.org
[mailto:community-bounces at lists.gispython.org] On Behalf Of Eric Bréhault
Sent: 24 April 2008 12:05
To: gispython.org community projects
Subject: Re: [Community] OpenLayers in Plone 3
of course it is simple :)
but it would be still useful to do it only once
here what I have I mind:
- a skin containing OpenLayers
- a profile which would declare the css, js and so on, plus a
propertytool in the portal (to manage stuff like GoogleMapKey, for
instance)
- a BrowserView class, with few annotations (to manage wms adresses,
SLD styles, etc...)
- some PT macros that you would be able to insert OL in your
product-specific templates that way:
tal:define="view here/@@openlayer_browserview"
<script tal:define="my_google_key view/getGoogleKey"
type="text/javascript" src=""
tal:attributes="src
string:http://maps.google.com/maps?file=api&v=2&key=${my_google_key}
">
<script tal:define="parameters view/getParameters"
tal:content="string:window.onload=function()
{load('${parameters}');}" >
<div id="map" tal:define="myHeight view/getHeight"
tal:attributes="style string:height:${myHeight}px">
</div>
so, for sure, it is not difficult, but it would just make the
integration cleaner, that's all
Eric
On Thu, Apr 24, 2008 at 11:35 AM, Steve Coleman-Williams <steve at eryr.com>
wrote:
> To get Plone to use the OL libraries is at best trivial at worst simple.
>
> I already have a product that simply installs the OpenLayers directory
> structure and JS files into Plone skins and allows people to include them
as
> resources
>
>
> Steve Coleman-Williams
> E-mail: steve at eryr.com
> Phone (work): (01970) 613438
> Phone (Mobile): 07774522282
>
> Please do not print this e-mail unless absolutely necessary - SAVE ENERGY
> and PAPER
> ---
> non facias malum ut inde fiat bonum
>
>
>
> -----Original Message-----
> From: community-bounces at lists.gispython.org
> [mailto:community-bounces at lists.gispython.org] On Behalf Of Eric Bréhault
>
>
> Sent: 24 April 2008 10:33
> To: j.vanderven at magion.nl; gispython.org community projects
> Subject: Re: [Community] OpenLayers in Plone 3
>
> editing/adding/removing features should be part of the presentation layer
>
> but, here, I do not propose to build a complete GIS presentation layer
>
> I just propose to provide a technical toolkit to be able to insert
> OpenLayers in Plone templates, which would be used by any presentation
> layer involving OL
> (because the needs might be very differents: some want a content-type
> to display a map, others want to manage geo-aware Plone objects, and
> others want to build an AT geo widget)
>
> so I do not think it would be productive to try to build a generic
> OL-based GIS presentation layer for Plone
>
> In my case for instance, I use OL to create or edit geometry, and I
> call zgeo.wfs to save and index the resulting geometry directly in
> Zope, but we could imagine another solution where the geometry is also
> created and modified using OL but stored in an AT field and sent to
> PostGIS (for instance) as a WKT string
>
> but, whatever is your architecture, in any case, you will still need
> to make Plone able to load and use the OL Javascript library, so
> that's the objective of my initial proposal
>
> see?
>
> Eric BREHAULT
>
>
> On Thu, Apr 24, 2008 at 10:22 AM, Jan van der Ven <j.vanderven at magion.nl>
> wrote:
> > Eric,
> >
> >
> > Part of the presentation layer is editing and adding and removing
> content,
> > right?
> >
> >
> > Kind regards,
> >
> >
> > Jan
> >
> >
> >
> > -----Original Message-----
> > From: community-bounces at lists.gispython.org
> >
> > [mailto:community-bounces at lists.gispython.org] On Behalf Of Eric
Bréhault
> > Sent: Thursday, April 24, 2008 09:42
> > To: tech at wildintellect.com; gispython.org community projects
> > Subject: Re: [Community] OpenLayers in Plone 3
> >
> >
> >
> > PrimaGIS provides the ability to manage MapServer from Plone, and also
to
> > display a map in Plone (using OpenLayers by the way in the Plone
version
> I
> > think).
> >
> > Here what we propose is just to provide OpenLayers in Plone, so just
the
> GIS
> > client technical intergration aspects (basically a skin containing OL
+
> some
> > nice macro to insert and configure OL from PT templates). Nothing
about
> the
> > GIS server-side. Nothing about the spatial information data model or
> > storage.
> >
> > The idea is to provide an unified OL integration technical toolkit
that
> > could be used for instance by PrimaGIS, EryrOL, PleiadesOL, or any
other
> > Plone product that may need OL.
> >
> > Eric BREHAULT
> >
> > On Thu, Apr 24, 2008 at 3:55 AM, Alex Mandel
<tech_dev at wildintellect.com>
> > wrote:
> > >
> > > Moisan Yves wrote:
> > > > -Translation to Dutch.
> > > >
> > > > And French too, but with Éric on board that's no problem.
> > > >
> > > > As an aside, I noticed the folks at OpenPlans are apparently
going
> to
> > provide some map viewing/editing capabilities (GeoServer I assume) in
> their
> > OpenCore software. OpenCore is Plone (and a couple of other FOSS
parts),
> > though I'm not sure which version. It may be a good idea to bounce an
> email
> > to Chris Holmes about an OL integration to Plone 3.
> > > >
> > > > Yves
> > > > _______________________________________________
> > > > Community mailing list
> > > > Community at lists.gispython.org
> > > > http://lists.gispython.org/mailman/listinfo/community
> > >
> > > OpenPlans is plone 2.5. I haven't peeked at what their planning now
> > > but last I looked they had tinkered with Prima 0.5 and decided to
> > > wait on an easier solution.
> > >
> > > I'm in to help although I'm not terribly familiar with the inner
> > > workings of Plone 3 yet. (Book to be ordered soon)
> > >
> > > One question for clarification, how does this idea differ from the
> > > PrimaGIS mindset?
> > >
> > > Alex
> > >
> > >
> > > _______________________________________________
> > > Community mailing list
> > > Community at lists.gispython.org
> > > http://lists.gispython.org/mailman/listinfo/community
> > >
> > _______________________________________________
> > Community mailing list
> > Community at lists.gispython.org
> > http://lists.gispython.org/mailman/listinfo/community
> >
> >
> > No virus found in this incoming message.
> > Checked by AVG.
> > Version: 7.5.524 / Virus Database: 269.23.3/1392 - Release Date:
> 22-Apr-2008
> > 15:51
> >
> >
> > No virus found in this outgoing message.
> > Checked by AVG.
> > Version: 7.5.524 / Virus Database: 269.23.4/1394 - Release Date:
> 23-Apr-2008
> > 19:16
> >
> >
> >
> >
> > _______________________________________________
> > Community mailing list
> > Community at lists.gispython.org
> > http://lists.gispython.org/mailman/listinfo/community
> >
> _______________________________________________
> Community mailing list
> Community at lists.gispython.org
> http://lists.gispython.org/mailman/listinfo/community
>
> _______________________________________________
> Community mailing list
> Community at lists.gispython.org
> http://lists.gispython.org/mailman/listinfo/community
>
_______________________________________________
Community mailing list
Community at lists.gispython.org
http://lists.gispython.org/mailman/listinfo/community
More information about the Community
mailing list