BIOSTALL / CodeIgniter-Google-Maps-V3-API-Library

The library enables you to create a map and overlay multiple markers, polylines, polygons, rectangles, ground overlays and/or circles, all of which are fully customisable. The library also supports showing directions between two points, including the ability to show the textual directions alongside the map too, and marker clustering. The first stages of integration with the Google Places API are available for use too.
http://biostall.com/codeigniter-google-maps-v3-api-library
288 stars 199 forks source link

Adding text in the circle marker .... #26

Open maan81 opened 10 years ago

maan81 commented 10 years ago

Is there a way of adding text inside the circle marker as shown in the attached image ?

Currently I am using the marker as

$marker = array(
                'infowindow_content' => '('.$i.') ',
                'position' => $latitude.', '.$longitude,
                'title'    => $company,
                'visible'  => true,
            );

which not exactly as what it shows in the map as below.

map-1_img

Perhaps by adding something more in the codes :

$this->load->library('googlemaps');

$config['center'] = '37.4419, -122.1419';
$config['zoom'] = 17;
$this->googlemaps->initialize($config);

$circle = array();
$circle['center'] = '37.4419, -122.1419';
$circle['radius'] = '100';
$this->googlemaps->add_circle($circle);
$data['map'] = $this->googlemaps->create_map();

$this->load->view('view_file', $data);

obtained from : http://biostall.com/demos/google-maps-v3-api-codeigniter-library/circle

demonstrations circle google maps v3 api codeigniter library 2014-02-28 20-37-19

suelynchinclime commented 6 years ago

@maan81 - Did you ever get a solution to this?