[OpenLayers-Users] Examples of redesign of Openlayers

Espen Isaksen espen.isaksen at gmail.com
Mon Aug 20 15:51:15 EDT 2007


Thanks! I will look into that one.

Espen

On 20/08/07, Duarte Carreira <DCarreira at edia.pt> wrote:
>  Espen,
>
> Check this one:
> http://www.cotr.pt/cotrinv/index.html
>
> It's an inventory of irrigated areas that you can query and see results
> on the map. It's in Portuguese. Uses OL and ArcIMS (WMS direct and
> reflector script to process queries). Also uses TileCache for the base
> layer.
> Other libs include: old version of moo.fx for menu effects and ajax, and
> json.js.
>
> Regards,
> Duarte
>
> ------------------------------
>
> Message: 4
> Date: Mon, 20 Aug 2007 09:18:37 +0200
> From: "Espen Isaksen" <espen.isaksen at gmail.com>
> Subject: [OpenLayers-Users] Examples of redesign of Openlayers
> To: users at openlayers.org
> Message-ID:
>         <a4cd3760708200018x131a6e68ne36712b0060a9923 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi!
>
> I am looking for websites using openlayers which have fully integrated
> it onto their site. Meaning that you cannot visually recognize that they
> are using openlayers.
>
> The only one I have seen is this one: http://www.opengeoportail.fr/
>
> Any other examples?
>
>
> ------------------------------
>
> Message: 5
> Date: Mon, 20 Aug 2007 01:31:49 -0700 (PDT)
> From: Prasad Choudhary <prasad.choudhary at gmail.com>
> Subject: [OpenLayers-Users] function on zoom change
> To: users at openlayers.org
> Message-ID: <12232026.post at talk.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
>
> Hello All
>
> I want to change layer's markers to lines and polygon after certain zoom
> level is there any solution for this
>
> Thanks All.
> --
> View this message in context:
> http://www.nabble.com/function-on-zoom-change-tf4297427.html#a12232026
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>
>
>
> ------------------------------
>
> Message: 6
> Date: Mon, 20 Aug 2007 14:01:37 +0200
> From: "Erik Uzureau" <erik.uzureau at metacarta.com>
> Subject: Re: [OpenLayers-Users] Measure Distance? Ruler?
> To: "Chris Hardin" <chrislhardin at gmail.com>
> Cc: users at openlayers.org
> Message-ID:
>         <6ae3fb590708200501x1110ba61g28fd894fd02db0b4 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> I know that there is a ticket for this in TRAC... and there may or may
> not be work underway to solve this.
>
> I know also that there are some wierd math-heavy functions in the (i
> believe) Util.js file which can be used to calculate distance between
> points.
>
> It has for a while been a (low) MetaCarta priority to add this
> functionality to OpenLayers
> erik
>
> On 8/19/07, Chris Hardin <chrislhardin at gmail.com> wrote:
> > I want to click a point and drag a line to another point on the map
> > and a measurement be given. I could write this myself, but I was
> > hoping there might already be something included or an add on I could
> > use. Does anyone have any ideas?
> > _______________________________________________
> > Users mailing list
> > Users at openlayers.org
> > http://openlayers.org/mailman/listinfo/users
> >
>
>
> ------------------------------
>
> Message: 7
> Date: Mon, 20 Aug 2007 07:17:46 -0500
> From: "Chris Hardin" <chrislhardin at gmail.com>
> Subject: Re: [OpenLayers-Users] Measure Distance? Ruler?
> To: "Erik Uzureau" <erik.uzureau at metacarta.com>
> Cc: users at openlayers.org
> Message-ID:
>         <44b0bbf60708200517h38808e23l2c846d2a15c28e17 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Yeah, the calculation involves a little trig. I figure it would be an
> easy feature to add. I use the following .js file to calculate it, I
> just need to figure out how to feed it the starting point and ending
> point and draw a line.
>
>
>
>
>
>
> var EARTH_MEAN_RADIUS_MILES = 3959.87247;
> var EARTH_MEAN_RADIUS_KILOMETERS= 6372.797;
> var EARTH_MEAN_RADIUS_KNOTS =3441.0351;
> var EARTH_MEAN_RADIUS_FEET = 20908126.6;
> var EARTH_MEAN_RADIUS_METERS = 6372796.99;
> var EARTH_MEAN_RADIUS_YARDS = 6969375.53;
>
>
>
>
> /*
>  * Use Haversine formula to Calculate distance (in km) between two
> points specified by
>  * latitude/longitude (in numeric degrees)
>  *
>  * example usage from form:
>  *   result.value = LatLon.distHaversine(lat1.value.parseDeg(),
> long1.value.parseDeg(),
>  *                                       lat2.value.parseDeg(),
> long2.value.parseDeg());
>  * where lat1, long1, lat2, long2, and result are form fields
>  */
> LatLon.distHaversine = function(lat1, lon1, lat2, lon2, meanRadius) {
>   var R = meanRadius;
>   var dLat = (lat2-lat1).toRad();
>   var dLon = (lon2-lon1).toRad();
>   lat1 = lat1.toRad(), lat2 = lat2.toRad();
>
>   var a = Math.sin(dLat/2) * Math.sin(dLat/2) +
>           Math.cos(lat1) * Math.cos(lat2) *
>           Math.sin(dLon/2) * Math.sin(dLon/2);
>   var c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a));
>   var d = R * c;
>   return d;
> }
>
>
> /*
>  * ditto using Law of Cosines
>  */
> LatLon.distCosineLaw = function(lat1, lon1, lat2, lon2, meanRadius) {
>   var R = meanRadius;
>   var d = Math.acos(Math.sin(lat1.toRad())*Math.sin(lat2.toRad()) +
>
> Math.cos(lat1.toRad())*Math.cos(lat2.toRad())*Math.cos((lon2-lon1).toRad
> ()))
> * R;
>   return d;
> }
>
>
> /*
>  * calculate (initial) bearing between two points
>  *
>  * from: Ed Williams' Aviation Formulary,
> http://williams.best.vwh.net/avform.htm#Crs
>  */
> LatLon.bearing = function(lat1, lon1, lat2, lon2) {
>   lat1 = lat1.toRad(); lat2 = lat2.toRad();
>   var dLon = (lon2-lon1).toRad();
>
>   var y = Math.sin(dLon) * Math.cos(lat2);
>   var x = Math.cos(lat1)*Math.sin(lat2) -
>           Math.sin(lat1)*Math.cos(lat2)*Math.cos(dLon);
>   return Math.atan2(y, x).toBrng();
> }
>
>
> /*
>  * calculate destination point given start point, initial bearing
> (deg) and distance (km)
>  *   see http://williams.best.vwh.net/avform.htm#LL
>  */
> LatLon.prototype.destPoint = function(brng, d, meanRadius) {
>   var R = meanRadius; // earth's mean radius in km
>   var lat1 = this.lat.toRad(), lon1 = this.lon.toRad();
>   brng = brng.toRad();
>
>   var lat2 = Math.asin( Math.sin(lat1)*Math.cos(d/R) +
>                         Math.cos(lat1)*Math.sin(d/R)*Math.cos(brng) );
>   var lon2 = lon1 +
> Math.atan2(Math.sin(brng)*Math.sin(d/R)*Math.cos(lat1),
>
> Math.cos(d/R)-Math.sin(lat1)*Math.sin(lat2));
>
>   if (isNaN(lat2) || isNaN(lon2)) return null;
>   return new LatLon(lat2.toDeg(), lon2.toDeg());
> }
>
>
> /*
>  * construct a LatLon object: arguments in numeric degrees
>  *
>  * note all LatLong methods expect & return numeric degrees (for
> lat/long & for bearings)
>  */
> function LatLon(lat, lon) {
>   this.lat = lat;
>   this.lon = lon;
> }
>
>
> /*
>  * represent point {lat, lon} in standard representation
>  */
> LatLon.prototype.toString = function() {
>   return this.lat.toLat() + ', ' + this.lon.toLon();
> }
>
> /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - - - - - - - -  */
>
> // extend String object with method for parsing degrees or lat/long
> values to numeric degrees
> //
> // this is very flexible on formats, allowing signed decimal degrees,
> or deg-min-sec suffixed by
> // compass direction (NSEW). A variety of separators are accepted (eg
> 3? 37' 09"W) or fixed-width
> // format without separators (eg 0033709W). Seconds and minutes may be
> omitted. (Minimal validation
> // is done).
>
> String.prototype.parseDeg = function() {
>   if (!isNaN(this)) return Number(this);                 // signed
> decimal degrees without NSEW
>
>   var degLL = this.replace(/^-/,'').replace(/[NSEW]/i,'');  // strip
> off any sign or compass dir'n
>   var dms = degLL.split(/[^0-9.]+/);                     // split out
> separate d/m/s
>   for (var i in dms) if (dms[i]=='') dms.splice(i,1);    // remove
> empty elements (see note below)
>   switch (dms.length) {                                  // convert to
> decimal degrees...
>     case 3:                                              // interpret
> 3-part result as d/m/s
>       var deg = dms[0]/1 + dms[1]/60 + dms[2]/3600; break;
>     case 2:                                              // interpret
> 2-part result as d/m
>       var deg = dms[0]/1 + dms[1]/60; break;
>     case 1:                                              // decimal or
> non-separated dddmmss
>       if (/[NS]/i.test(this)) degLL = '0' + degLL;       // -
> normalise N/S to 3-digit degrees
>       var deg = dms[0].slice(0,3)/1 + dms[0].slice(3,5)/60 +
> dms[0].slice(5)/3600; break;
>     default: return NaN;
>   }
>   if (/^-/.test(this) || /[WS]/i.test(this)) deg = -deg; // take '-',
> west and south as -ve
>   return deg;
> }
> // note: whitespace at start/end will split() into empty elements
> (except in IE)
>
>
> /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - - - - - - - -  */
>
> // extend Number object with methods for converting degrees/radians
>
> Number.prototype.toRad = function() {  // convert degrees to radians
>   return this * Math.PI / 180;
> }
>
> Number.prototype.toDeg = function() {  // convert radians to degrees
> (signed)
>   return this * 180 / Math.PI;
> }
>
> Number.prototype.toBrng = function() {  // convert radians to degrees
> (as bearing: 0...360)
>   return (this.toDeg()+360) % 360;
> }
>
>
> /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - - - - - - - -  */
>
> // extend Number object with methods for presenting bearings & lat/longs
>
> Number.prototype.toDMS = function() {  // convert numeric degrees to
> deg/min/sec
>   var d = Math.abs(this);  // (unsigned result ready for appending
> compass dir'n)
>   d += 1/7200;  // add ? second for rounding
>   var deg = Math.floor(d);
>   var min = Math.floor((d-deg)*60);
>   var sec = Math.floor((d-deg-min/60)*3600);
>   // add leading zeros if required
>   if (deg<100) deg = '0' + deg; if (deg<10) deg = '0' + deg;
>   if (min<10) min = '0' + min;
>   if (sec<10) sec = '0' + sec;
>   return deg + '\u00B0' + min + '\u2032' + sec + '\u2033';
> }
>
> Number.prototype.toLat = function() {  // convert numeric degrees to
> deg/min/sec latitude
>   return this.toDMS().slice(1) + (this<0 ? 'S' : 'N');  // knock off
> initial '0' for lat!
> }
>
> Number.prototype.toLon = function() {  // convert numeric degrees to
> deg/min/sec longitude
>   return this.toDMS() + (this>0 ? 'E' : 'W');
> }
>
> Number.prototype.toPrecision = function(fig) {  // override
> toPrecision method with one which displays
>   if (this == 0) return 0;                      // trailing zeros in
> place of exponential notation
>   var scale = Math.ceil(Math.log(this)*Math.LOG10E);
>   var mult = Math.pow(10, fig-scale);
>   return Math.round(this*mult)/mult;
> }
>
> /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - - - - - - - -  */
>
>
>
> On 8/20/07, Erik Uzureau <erik.uzureau at metacarta.com> wrote:
> > I know that there is a ticket for this in TRAC... and there may or may
> > not be work underway to solve this.
> >
> > I know also that there are some wierd math-heavy functions in the (i
> > believe) Util.js file which can be used to calculate distance between
> > points.
> >
> > It has for a while been a (low) MetaCarta priority to add this
> > functionality to OpenLayers
> > erik
> >
> > On 8/19/07, Chris Hardin <chrislhardin at gmail.com> wrote:
> > > I want to click a point and drag a line to another point on the map
> > > and a measurement be given. I could write this myself, but I was
> > > hoping there might already be something included or an add on I
> could
> > > use. Does anyone have any ideas?
> > > _______________________________________________
> > > Users mailing list
> > > Users at openlayers.org
> > > http://openlayers.org/mailman/listinfo/users
> > >
> >
>
>
> --
> Chris Hardin
> Software Architect
> Archetype Corporation
>
>
> ------------------------------
>
> Message: 8
> Date: Mon, 20 Aug 2007 07:30:28 -0500
> From: "Chris Hardin" <chrislhardin at gmail.com>
> Subject: Re: [OpenLayers-Users] Weather Maps
> To: "John Cole" <john.cole at uai.com>
> Cc: users at openlayers.org
> Message-ID:
>         <44b0bbf60708200530g7b74820bg995268a4957c8cb8 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> I need something like an overlay over our maps to display weather,
> wouldn't this just deliver me an entire map tile?
>
>
> On 8/19/07, John Cole <john.cole at uai.com> wrote:
> > The radar imagery at weather.gov has world files with it, so all you
> need to
> > do is download the file you want with wget or something, and serve it
> via a
> > wms server like mapserver.  Works great.
> >
> > John
> >
> > -----Original Message-----
> > From: users-bounces at openlayers.org
> [mailto:users-bounces at openlayers.org] On
> > Behalf Of Chris Hardin
> > Sent: Sunday, August 19, 2007 4:16 PM
> > To: users at openlayers.org
> > Subject: [OpenLayers-Users] Weather Maps
> >
> > Does anyone know of a cheap way to add radar and satellite imagery
> > layers to the maps?? I love the intellicast.com radar maps and I want
> > to integrate something like that on a really tight budget.
> > _______________________________________________
> > Users mailing list
> > Users at openlayers.org
> > http://openlayers.org/mailman/listinfo/users
> >
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.5.484 / Virus Database: 269.12.0/961 - Release Date:
> 8/19/2007
> > 7:27 AM
> >
> >
> > No virus found in this outgoing message.
> > Checked by AVG Free Edition.
> > Version: 7.5.484 / Virus Database: 269.12.0/961 - Release Date:
> 8/19/2007
> > 7:27 AM
> >
> > This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they are
> addressed. If you have received this email in error please notify the
> sender. This message contains confidential information and is intended
> only for the individual named. If you are not the named addressee you
> should not disseminate, distribute or copy this e-mail.
> >
>
>
> --
> Chris Hardin
> Software Architect
> Archetype Corporation
>
>
> ------------------------------
>
> Message: 9
> Date: Mon, 20 Aug 2007 14:42:52 +0200
> From: "Bart van den Eijnden (OSGIS)" <bartvde at osgis.nl>
> Subject: [OpenLayers-Users] OpenLayers "wizard"
> To: users at openlayers.org
> Message-ID: <dc9031d46fb02d507326c1a4a695cd3b at 145.50.39.11>
> Content-Type: text/plain;       charset="iso-8859-1"
>
> Hi list,
>
> is there any interest in a wizard type of functionality, where users can
> configure their personal settings of an OpenLayers application (which
> tools
> they want, which type of map navigation they want etc.)?
>
> Also, this could be used as an application to quickly develop webmapping
> clients based on OpenLayers for people who know nothing about
> javascript.
>
> Any ideas/thoughts appreciated.
>
> Best regards,
> Bart
>
> --
> Bart van den Eijnden
> OSGIS, Open Source GIS
> http://www.osgis.nl
>
>
>
>
>
>
>
> ------------------------------
>
> Message: 10
> Date: Mon, 20 Aug 2007 08:47:26 -0400
> From: "Darren Cope" <darrencope at gmail.com>
> Subject: Re: [OpenLayers-Users] OpenLayers "wizard"
> To: "Bart van den Eijnden (OSGIS)" <bartvde at osgis.nl>
> Cc: users at openlayers.org
> Message-ID:
>         <10f4de780708200547xd8fa872j7e5ca459acb469ae at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi Bart,
>
> Speaking as someone who knows nothing about javascript, yes,  I would
> find this very useful!
>
> Cheers,
>
> Darren
>
> On 8/20/07, Bart van den Eijnden (OSGIS) <bartvde at osgis.nl> wrote:
> > Hi list,
> >
> > is there any interest in a wizard type of functionality, where users
> can
> > configure their personal settings of an OpenLayers application (which
> tools
> > they want, which type of map navigation they want etc.)?
> >
> > Also, this could be used as an application to quickly develop
> webmapping
> > clients based on OpenLayers for people who know nothing about
> javascript.
> >
> > Any ideas/thoughts appreciated.
> >
> > Best regards,
> > Bart
> >
> > --
> > Bart van den Eijnden
> > OSGIS, Open Source GIS
> > http://www.osgis.nl
> >
> >
> >
> >
> >
> > _______________________________________________
> > Users mailing list
> > Users at openlayers.org
> > http://openlayers.org/mailman/listinfo/users
> >
>
>
> --
> Darren Cope
> http://dmcope.freeshell.org
>
>
> ------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
> End of Users Digest, Vol 11, Issue 24
> *************************************
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



More information about the Users mailing list