Home › Forums › MapPress Support › Center and Zoom POI with Javascript › Reply To: Center and Zoom POI with Javascript
October 28, 2014 at 7:55 am
#15300
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)); ?>