Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cluster on Marker Layer #1499

Open
Tessimisst opened this issue Jun 6, 2016 · 0 comments
Open

Cluster on Marker Layer #1499

Tessimisst opened this issue Jun 6, 2016 · 0 comments

Comments

@Tessimisst
Copy link

Hi everybody,

my task is to create a cluster on a marker layer.

Can anybody tell me how to do that?

Many thanks

My Code:

var antraege=new OpenLayers.Layer.PopupMarker('Anträge', {
        createIconFromData: function (data) {
            return new OpenLayers.Icon (data.icon, {w:25,h:30});
        },
       createHtmlFromData: function (data) {
            return '<p><table style="width: 100%"><tr><td><strong>Antragsnummer</strong></td><td>' + this.html(data.antragsnummer) + '</td></tr>' +
      //'<tr><td><strong>Status</strong></td><td>' + this.html(data.stat) + '</td></tr>' +
      '<tr><td><strong>Fortführungsriss</strong></td><td>' + this.html(data.fr) + '</td></tr>' +
      '<tr><td><strong>Bearbeiter</strong></td><td>' + this.html(data.Bearbeiter) + '</td></tr>' +
      '<tr><td><strong>Auftragsart</strong></td><td>' + this.html(data.Auftragsart) + '</td></tr></table>';
        },
        location: "korrd3.txt"


    });
  map.addLayer(antraege);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant