Viewing more than 50 points on the Geolocation Map

We were hoping to be able to view all of our datapoints on the Geolocation map, but the configuration options limit this to 50.

Is there a way to do this?

Hi swoger,

When you install Geolocation plugin in your Omeka, browse the plugin directory in Omeka root. Then go to the Geolocation folder and find and edit this file "plugin.php".

At the second line you can see something like this:
define('GEOLOCATION_MAX_LOCATIONS_PER_PAGE', 50);

I believe this is what you're looking for. Because the next line define a default value (10) so this is the only limit that I've found so far.

I don't have more than 50 items on a map so I couldn't test this. Change the number to something like 100 then see if it worked or not.

The only thing that I'm worried about is it may possible of crashing, bad performance, or anything else that made them limit this number to 50.

But anyway, try this and let me know how it goes.
Best regards,
Maziyar

I think there is solution for extended some limits so keep in touch with this thread post because I am also searching that one....and thanks for sharing problem with us.Testing Geolocation

Hey everybody, I had this issue too but just figured it out. In the Geolocation plugin folder, go to Controllers and edite MapController.php

edit $ limit = to have the number you want, instead of it referencing the max allowed. for example, my code now looks like this:

$params = $this->getAllParams();
$currentPage = $this->getParam('page', 1);
$limit = '200';
$params['only_map_items'] = true;
$items = $table->findItemsBy($params, $limit, $currentPage);

so it can show my 100+ items all together!