Openlayers and views

Events happening in the community are now at Drupal community events on www.drupal.org.
kartagis's picture

Hi,

I've created my map as per http://www.interworks.com/blogs/mmueggenborg/2012/01/03/setting-drupal-7..., which is seen nicely at http://engelsizturkiye.info. However, some of my locations are not visible on the map. What can I do about this?

Regards,

Comments

@orkutmuratyilmaz One example

kartagis's picture

@orkutmuratyilmaz

One example is Beşiktaş İnönü Stadı, whose coordinates are 41.0392 (Lat) and 28.9947 (Lon).

node URL?

orkut murat yılmaz's picture

Can you provide the node URLs?

It may be a problem with

Sinan Erdem's picture

It may be a problem with Views' number of items to display. Maybe you can try displaying the nodes as titles (unformatted) instead of the map display, to see if missing points are really outputted from the views results.

Normally, openlayers doesn't have a mechanism to filter the results in the view area. So, you cannot expect to see all 10 locations in the window if you set the number of results as 10 in views. Instead, this number determines the number of points displayed in the whole map. You can only see 10 locations if you zoom all the way out in the map.

Views geojson module has a mechanism to filter the results to visible area of the map. From the project page:

Accepts bounding-box coordinates as an argument to filter the points returned.

@etcetera9, I tried what you

kartagis's picture

@etcetera9, I tried what you suggested (removed limit) but there is no change so far :(

Then it is highly possible

Sinan Erdem's picture

Then it is highly possible that the location data (lat/long, or wkt - I dont know which format you are using) for that node is not stored correctly. You can try comparing the location data with another working node.

Location and Mapping

Group organizers

Group categories

Wiki type

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: