Hi all,
I'm try to use your useful module.
I'not yet understand which way I can set up a map with polygon overlay (without view module).
I tried something like this:
return drupal_render(theme('gm3_map', array(
'map'=>array(
'settings'=>array(
'width'=>'100%',
'height' => '700px',
'center'=>array('longitude'=>8.8866,'latitude' => 45.567),
'mapTypeId'=>'google.maps.MapTypeId.ROADMAP',
'zoom'=>15,
'streetViewControl' => TRUE,
),
'libraries'=>array(
'point'=>array(
'points'=>array(
array('longitude'=>8.8866,'latitude'=> 45.567,'content'=>'This is the centre of the world!'),
array('longitude'=>8.8868,'latitude'=> 45.567,'content'=>'beopen')
)
),
'polygon'=>array(
'polygons'=>$pol[2081]->polygon (this is a WKT for polygon POLYGON((8.88460189367686 45.5684890592389,8.88470985 ..)
)
)
),

)));

could you give an hint?

thanks a lot

luca

Comments

aliaric’s picture

maybe you should add polygon button...

lucamarletta’s picture

thanks for help but I don't need to edit, just to overlay a map and zoom to polygon.

maybe is not yet implemented ?

is it?

luca

sdrycroft’s picture

What you possibly need is the gm3_filter module, although the documentation for that is currently limited. Are you trying to do this in a module, or have you installed GM3 on your site, and simply want to add a map to a page of text?