Hi,
I’ve added some POIs programmatically to the map in two ways.
In the first case, I’ve created a map object and added POIs there, and called display() funtion directly to display the map.
In the second case, I’ve hooked a custom function to ‘mappress_map_display’ action and added POIs there, and used the shortcode to display the map.
Showing the first map, map is zoomed correctly (map automatically contains all POIs).
Regarding the second map, map is not zoomed (a world map is shown).
I want to zoom the map correctly in the second case.
Please help.
Thanks in advance,
Isao