[OpenLayers-Users] Re: Users Digest, Vol 61, Issue 16

Elton Dise elton at post.com
Wed Oct 12 09:38:35 EDT 2011


"Gennesseein' is believin' /
 You can count on Genny's taste, 'cause it's brewed in just one place /
 Gennesseein' is believin'!"

----- Original Message -----
From: openlayers-users-request at lists.osgeo.org
Sent: 10/12/11 12:00 PM
To: openlayers-users at lists.osgeo.org
Subject: Users Digest, Vol 61, Issue 16

 Send Users mailing list submissions to openlayers-users at lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/openlayers-users or, via email, send a message with subject or body 'help' to openlayers-users-request at lists.osgeo.org You can reach the person managing the list at openlayers-users-owner at lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Users digest..." Today's Topics: 1. RE: Open Popup with DoubleClick (Tito, Joseph) 2. Re: Panning 2.10 vs 2.11 (Eric Lemoine) 3. Re: Re: how to add php/postgresql query result as Geojson layer to openlayers (Vishal Mehta) 4. Markers (section_two) ---------------------------------------------------------------------- Message: 1 Date: Tue, 11 Oct 2011 13:09:36 -0400 From: "Tito, Joseph" <Joseph.Tito at cobham.com> Subject: RE: [OpenLayers-Users] Open Popup with DoubleClick To: "proveo" <pfischer at proveo.com>, <users at openlayers.org> Message-ID: <5ABE30CE099A524CBF95C715D37BCACC0419C7F4 at nemo.columbia.ads.sparta.com> Content-Type: text/plain; charset="us-ascii" You can override the Click class by the following: Put this somewhere outside your other functions: OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, { defaultHandlerOptions: { 'single': true, 'double': true, 'pixelTolerance': 0, 'stopSingle': false, 'stopDouble': true }, initialize: function(options) { this.handlerOptions = OpenLayers.Util.extend( {}, this.defaultHandlerOptions ); OpenLayers.Control.prototype.initialize.apply( this, arguments ); this.handler = new OpenLayers.Handler.Click( this, { 'click': this.onClick, 'dblclick': this.onDblclick }, this.handlerOptions ); }, onClick: function(event) { alert("single click"); }, onDblclick: function(event) { alert("double click"); } }); You'll also need to add this control and activate it: var clickControl = new OpenLayers.Control.Click(); map.addControl(clickControl); clickControl.activate(); -----Original Message----- From: openlayers-users-bounces at lists.osgeo.org [mailto:openlayers-users-bounces at lists.osgeo.org] On Behalf Of proveo Sent: Tuesday, October 11, 2011 10:50 AM To: users at openlayers.org Subject: [OpenLayers-Users] Open Popup with DoubleClick Hallo, how can I realise that the SelectFeature Control reacts on "onSelect: selectFeature" only with a doubleClick, but on "onUnselect: unselectFeature" with a normal click. e.g. opening a popup on a VectorLayer with doubleClick and Closing the Popup with one Click on the Map. Perhaps I can use this: new OpenLayers.Control.Click({ handlerOptions: { "single": false, "double": true } }) but i have no idea how to combine this with the SelectControl. Greetings -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Open-Popup-with-DoubleClick-tp688 1265p6881265.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users ------------------------------ Message: 2 Date: Tue, 11 Oct 2011 19:21:32 +0200 From: Eric Lemoine <eric.lemoine at camptocamp.com> Subject: Re: [OpenLayers-Users] Panning 2.10 vs 2.11 To: Ricardo Bayley <ricardo.bayley at gmail.com> Cc: "openlayers-users at lists.osgeo.org" <openlayers-users at lists.osgeo.org> Message-ID: <CAGZ3h-E0K+7NojHim245-WXQJmwN4ZBiK-WG8oRiv-qVCETCdQ at mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" On Tuesday, October 11, 2011, Ricardo Bayley <ricardo.bayley at gmail.com> wrote: > I will try to have one by this afternoon. Or: are there OL 2.11 examples that exhibit the issue? -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemoine at camptocamp.com http://www.camptocamp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20111011/d394964d/attachment-0001.html ------------------------------ Message: 3 Date: Tue, 11 Oct 2011 11:25:07 -0700 From: Vishal Mehta <vishalm1975 at gmail.com> Subject: Re: [OpenLayers-Users] Re: how to add php/postgresql query result as Geojson layer to openlayers To: Gabriele Seitz <ml-seitz at web.de> Cc: users at openlayers.org Message-ID: <CALQaJh599xVjTRPd-BbAHnT6kzGFT8cpO71DmRy9QBKzODyMGw at mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" Another way would be to use the postgis extension to postgresql to store spatial tables, which can then be exported to GEOJSON format. http://www.postgis.org/documentation/manual-1.5/ST_AsGeoJSON.html On Mon, Oct 10, 2011 at 11:36 PM, Gabriele Seitz <ml-seitz at web.de> wrote: > Hi, > > I never tried ist myself before, but there is a GeoJSON Example at > http://www.openlayers.org/dev/examples/geojson.html > > Basically yuo should use var geojson_format = new > OpenLayers.Format.GeoJSON(); > > Hope this helps. > > Gabriele > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/how-to-add-php-postgresql-query-result-as-Geojson-layer-to-openlayers-tp6876808p6879775.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Vishal K. Mehta, PhD Scientist Stockholm Environment Institute - US 133 D St Suite F Davis CA 95616 www.sei-us.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20111011/797a73f6/attachment-0001.html ------------------------------ Message: 4 Date: Tue, 11 Oct 2011 21:25:46 -0700 (PDT) From: section_two <jmperricone at hotmail.com> Subject: [OpenLayers-Users] Markers To: users at openlayers.org Message-ID: <1318393546071-6883612.post at n2.nabble.com> Content-Type: text/plain; charset=us-ascii Hi, Im from Argentina. Im using OSM with openlayers. I have to put features in zoom 18. But markers appers allign , not perfect pixel position. What is the problem ? How can I fixit to show me the markers where I want. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Markers-tp6883612p6883612.html Sent from the OpenLayers Users mailing list archive at Nabble.com. ------------------------------ _______________________________________________ Users mailing list Users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users End of Users Digest, Vol 61, Issue 16 *************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20111012/b529c9e8/attachment.html


More information about the Users mailing list