Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lat lon icon iconSize iconOffset title description
- 56.030325 14.4774116666667 http://www.medinsbiologi.se/hano/Foto.png -10.5,-25 102_1 UV-foto
- var pois = new OpenLayers.Layer.Vector("Provpunkter",
- {
- projection: map.displayProjection,
- strategies: [new OpenLayers.Strategy.Fixed()],
- protocol: new OpenLayers.Protocol.HTTP(
- {
- url: "../poi/DynPOIHano.txt",
- format: new OpenLayers.Format.Text(
- {
- extractStyles: true,
- extractAttributes: true
- })
- })
- });
- function hideFeatures() {
- var features = pois.features;
- for( var i = 0; i < features.length; i++ ) {
- features.style.display = 'none';
- }
- pois.redraw();
- }
- $.each(pois.features, function (index, feature) {
- if ( feature.attributes.description == 'UV-foto' )
- feature.style.display = 'none';
- });
- function hideFeatures() {
- var feature = pois.features;
- for( var i = 0; i < feature.length; i++ ) {
- if (feature[i].style.externalGraphic == "http://www.medinsbiologi.se/hano/ikon/Foto.png") {
- feature[i].style= { display: 'none' };
- }
- }
- pois.redraw();
- }
Add Comment
Please, Sign In to add comment