Giter Site home page Giter Site logo

simplegooglemap's Introduction

1. For create many google map you can setup the config.php :

You can create custom maps by using /modules/Simplegooglemap/config/config.php file. You will see an example usage We need 2 array for create Google Map

	// 1. Array For Map Configuration
	$config['module_simplegooglemap_YOURMAPNAME'] = array(
		'zoom' => 17,
		'map_type' => 'SATELLITE', // SATELLITE, TERRAIN, ROADMAP, HYBRID
		'disableNavigationControl' => FALSE, //TRUE, FALSE
		'disablePanControl' => TRUE, // TRUE, FALSE
		'disableScaleControl' => TRUE, // TRUE, FALSE
		'disableMapTypeControl' => TRUE, // TRUE, FALSE
		'disableStreetViewControl' => TRUE, // TRUE, FALSE
		'disableOverviewMapControl' => TRUE, // TRUE, FALSE
	);
	
	// 2. Array For Marker Informations
	$config['module_simplegooglemap_YOURMAPNAME_marker_info'] = array(
		'position' => '36.85607682455626, 28.236267770918175', // Marker coordinates if you don't know coordinates you can use Edit Map section by dragging marker you will see coordinates changing inside Default Marker Position Input
		'icon' => base_url() . 'modules/Simplegooglemap/assets/images/icon_48_module.png', // Be sure your file path true!
		'info_window_title' => 'module_simplegooglemap_example_marker_title', // Using language file for multilang title, you can create a translation in your theme file
		'info_window_description' => 'module_simplegooglemap_example_marker_description' // Using language file for multilang description, you can create a translation in your theme file
	);

2. Module usage at Front Page of website :

	<!-- If want to use config.php file for create map need to use name="YOUR-MAP-NAME" attribute : -->
	<ion:simplegooglemap width="100%" height="300px" name="contact">
		<ion:show_map />
	</ion:simplegooglemap>
	
	<!-- If you want to display default map : -->
	<ion:simplegooglemap width="100%" height="300px">
		<ion:show_map />
	</ion:simplegooglemap>

3. Marker info window output like :

	<div class="map_info_windo">
		<h2>Marker Title</h2>
		<p>Your maarker description</p>
	</div>

simplegooglemap's People

Watchers

Aleh avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.