Reply To: Center and Zoom POI with Javascript

Home Forums MapPress Support Center and Zoom POI with Javascript Reply To: Center and Zoom POI with Javascript

#15300
Chris
Keymaster

I’m not sure I understood what you’re trying to do, but this may help:

the default poi list calls function ‘get_open_link’ in ‘mappress_poi.php’. That function takes ‘zoom’ as a parameter, so you can use it to open a POI and zoom in on the POI. You can use the onclick statement as shown in the function, or call it like this:
<?php echo $poi->get_open_link(array('zoom' => true)); ?>