Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Too Many Markers in NewMapComponent

  1. #1

    Default Too Many Markers in NewMapComponent

    Hi Guys,

    Anybody know howto implement too many markers using NewMapComponent?

    See a exemple:
    https://developers.google.com/maps/a...rkers?hl=pt-BR

    Thanks

  2. #2
    Join Date
    Nov 2011
    Posts
    1,229

    Default

    Hey.

    You'll have to change the component itself.

    From the link you sent, doing this for GoogleMaps will be fairly straight forward. I'd try to use MarkerClusterer as a start. So you'd have to change the GoogleMapsEngine to store an array of the markers you're drawing.

    Then you'll need to extend the mapengine interface to support an extra method postDraw. For the OpenMapEngine this would not do anything. For the GoogleMapEngine this will take the markers array and pass this into MarkerClusterer.

    Feel free to do issue a pull request after you're done. :-) We'd be happy to have that functionality on CDE.

    Cheers
    Pedro Vale
    --
    CTools Product Development
    http://www.webdetails.pt

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.