[OpenLayers-Users] Users Digest, Vol 26, Issue 58

Helm, Christopher Christopher_Helm at nrel.gov
Wed Nov 19 11:04:23 EST 2008


Witt, to fix the openlayers error your getting go into the OL module and
change it from local to hosted. We need to pull down the latest OL version
into freebase so this doesn't happen.


On 11/19/08 8:35 AM, "users-request at openlayers.org"
<users-request at openlayers.org> wrote:

> Send Users mailing list submissions to
> users at openlayers.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> http://openlayers.org/mailman/listinfo/users
> or, via email, send a message with subject or body 'help' to
> users-request at openlayers.org
> 
> You can reach the person managing the list at
> users-owner at openlayers.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Users digest..."
> 
> 
> Today's Topics:
> 
>    1.  Cluster Strategy with KML feed layer (Allan)
>    2. Re: How to insert that I digitized Feture in my WFS layer?
>       (Alexandre Dube)
>    3. Re: How to insert that I digitized Feture in my WFS layer?
>       (ironbar)
>    4. changing filters on the fly (Trond Michelsen)
>    5. Re: How to insert that I digitized Feture in my WFS layer?
>       (Alexandre Dube)
>    6. Re: changing filters on the fly (Trond Michelsen)
>    7. Re: How to insert that I digitized Feture in my WFS layer?
>       (ironbar)
>    8. Re: How to insert that I digitized Feture in my WFS layer?
>       (Alexandre Dube)
>    9. Re: How to insert that I digitized Feture in my WFS layer?
>       (Christopher Schmidt)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Wed, 19 Nov 2008 03:58:07 -0800 (PST)
> From: Allan <allanhenderson at gmail.com>
> Subject: [OpenLayers-Users]  Cluster Strategy with KML feed layer
> To: users at openlayers.org
> Message-ID: <1227095887699-1518817.post at n2.nabble.com>
> Content-Type: text/plain; charset=us-ascii
> 
> 
> Hey,
> 
> I'm trying to set up a cluster strategy on a V.Earth/Openlayers setup, with
> a KML file in ESPG 4326 format.
> 
> Using this code:
> 
> var marker_style = ({
> 'pointRadius' : "${radius}",
> 'fillColor' : '#9ED652',
> 'fillOpacity' : 0.8,
> 'strokeColor' : '#ffffff',
> 'strokeWidth' : '1',
> 'strokeOpacity' : 0.8
> }, {
>        context: {
>           radius: function(feature) {
>               return Math.min(feature.attributes.count, 7) + 3;
>           }
>        }
> });
> 
> var options = {
> 'projection': new OpenLayers.Projection("EPSG:900913"),
> 'displayProjection': new OpenLayers.Projection("EPSG:4326"),
>         'units': "m",
>         'maxResolution': 156543.0339,
> 'maxExtent' : new OpenLayers.Bounds(-20037508,-20037508,20037508,20037508),
> 'controls':[new OpenLayers.Control.Navigation(), new
> OpenLayers.Control.ZoomPanel()],
> 'numZoomLevels' : 18
> };
> // base map
> map = new OpenLayers.Map('map', options);
> // - MS Virtual Earth Layer
> var baselayer = new OpenLayers.Layer.VirtualEarth("Virtual Earth",{ 'type':
> VEMapStyle.Hybrid, "sphericalMercator": true});
> map.addLayer(baselayer);
> 
> // Controls for the map
> map.addControl(new OpenLayers.Control.LayerSwitcher());
> 
> var layermarkers = new OpenLayers.Layer.Vector("Markers",{
>                     strategies: [
>                     new OpenLayers.Strategy.Fixed(),
>                     new OpenLayers.Strategy.Cluster()],
>                     protocol: new OpenLayers.Protocol.HTTP({
>    url: "kml/placemarks.kml",
>    format: new OpenLayers.Format.KML({
>                         internalProjection: map.getProjectionObject(),
>                         externalProjection: map.displayProjection
>                     })
>       }),
>       styleMap:new OpenLayers.StyleMap({
>         "default": marker_style,
>         "select": {
>             fillColor: "#8aeeef",
>             strokeColor: "#32a8a9"
>         }
>        })
>       });
> 
> 
> But for some reason I simply cannot get it to work - Anyone have any idea
> what I'm missing?
> 
> Many Thanks
> 
> Allan




More information about the Users mailing list