1

Re: Data Entry Helpers: Google and georeference problem

Hi,

if I use "data_entry_helper::georeference_lookup" together with google layers in data_entry_helper::map_panel i get errors like this:
"Requested preset layer google_physical is not recognised."
"Requested preset layer google_satilite is not recognised."

And the google layers are not shown in the map pannel. If I just remove the georeference_lookup the google layers are shown fine.

Here is the code I use:

echo data_entry_helper::sref_and_system(array(
    'label'=>'Spatial Reference'
));
echo data_entry_helper::georeference_lookup(array(
    'label'=>'Search for place',
    'georefCountry'=>'Germany',
    'georefPreferredArea'=>'Mecklenburg-Vorpommern',
    'driver'=>'geoplanet'
));

echo data_entry_helper::map_panel(array(
  'presetLayers' => array('multimap_landranger','openlayers_wms', 'virtual_earth', 'multimap_default', 'google_hybrid','google_physical', 'google_streets', 'google_satellite')
));

2

Re: Data Entry Helpers: Google and georeference problem

Hi Daniel
I think this is a problem with the load order of the JavaScript files. I will commit a fix to the code repository for this, but for now a quick way to fix it is to open your copy of data_entry_helper.php and search for the georeference_lookup function. About 12 lines down you will see the line of code

self::add_resource('indiciaMapPanel');

This needs to be removed.

Best Wishes

John van Breda
Biodiverse IT

3

Re: Data Entry Helpers: Google and georeference problem

Hi Daniel
On second thoughts, don't do it that way. If you get the latest copy of jquery.indiciaMapPanel.js from SVN then it now has a better fix in the code.
Best Wishes

John van Breda
Biodiverse IT

4

Re: Data Entry Helpers: Google and georeference problem

Hi John,

the fix from svn works.

thanks

Daniel