Click here to Skip to main content
15,888,984 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: How can i disable add to cart button in Magneto 2? Pin
Afzaal Ahmad Zeeshan14-Dec-17 4:07
professionalAfzaal Ahmad Zeeshan14-Dec-17 4:07 
AnswerRe: How can i disable add to cart button in Magneto 2? Pin
Member 1358395818-Dec-17 20:43
Member 1358395818-Dec-17 20:43 
QuestionBootstrap Carousel not carouselling Pin
#realJSOP10-Dec-17 3:56
mve#realJSOP10-Dec-17 3:56 
AnswerRe: Bootstrap Carousel not carouselling Pin
#realJSOP10-Dec-17 5:38
mve#realJSOP10-Dec-17 5:38 
SuggestionRe: Bootstrap Carousel not carouselling Pin
Richard Deeming11-Dec-17 2:12
mveRichard Deeming11-Dec-17 2:12 
GeneralRe: Bootstrap Carousel not carouselling Pin
#realJSOP11-Dec-17 3:21
mve#realJSOP11-Dec-17 3:21 
QuestionHow to override block in Magento 2 ? Pin
suthan alley7-Dec-17 22:44
suthan alley7-Dec-17 22:44 
Questiongoogle map API biostall library issue on my project in codeigniter Pin
Member 135521401-Dec-17 5:13
Member 135521401-Dec-17 5:13 
Hi Anyone can help me out in this issue.My coordinate are fetching latitude and longitude from database dynamically and that should display as marker everytime when database updates by serial number but it is not displaying.

view:
<?php echo $map['javascript'];?>

<?php echo $map['mapdiv']

model:
function googlemaps($serial)
	{
		
		$return=array();
		$query=$this->db->select('cycle_serial,cycle_19_INT,cycle_20_INT,cycle_21_INT,cycle_22_INT,cycle_23_INT,cycle_24_INT')->from('cycles')->where(array('cycle_serial'=>$serial))->limit(1)->order_by('cycle_timestamp','DESC')->get();
		
		if($query->num_rows()>0)
		{
			foreach($query->result_array() as $row)
			{
				array_push($return,$row);
			}
		}
		return $return;	
	}

controller:
function Googlemaps($serial)
	{
		// Load the library
			$this->load->library('googlemaps'); 
			$config['minifyJS'] = TRUE; //When adding lots of markers, overlays and other functionality to the map this JavaScript can get quite large so recommend that minify this code.
			//$config['cluster'] = TRUE; 
			$config['center'] =  '1600 Amphitheatre Parkway in Mountain View';//37.4419, -122.1419
			$config['zoom'] = '15';    		
																
		 //Activate the library configuration option $geocodeCaching by setting it to TRUE:
				$config['geocodeCaching'] = TRUE;
				 
		// Initialize our map. Here you can also pass in additional parameters for customising the map
				$this->googlemaps->initialize($config);
			

			$coords=$this->dashboard_model->googlemaps($serial);
			//Loop through the coordinates we obtained above and add them to the map
			//if (is_array($coords) || is_object($coords))
			//{ 		
			 
				foreach($coords as $coordinate)
				{
						
					$marker=array();
						
					$lat1=$coordinate['cycle_19_INT'].(substr($coordinate['cycle_20_INT'], 0, 2)+(substr($coordinate['cycle_20_INT'], 2).".".$coordinate['cycle_21_INT'])/60);
					$lat2=str_replace($coordinate['cycle_22_INT'],'-',$coordinate['cycle_22_INT']).(substr($coordinate['cycle_23_INT'], 0, 2)+substr((substr($coordinate['cycle_23_INT'], 2).".".$coordinate['cycle_24_INT'])/60,0,7));				
					$lat=$lat1.','.$lat2;
					//$marker['id']=$coordinate->cycle_serial;	
					
					$marker['position']=$lat;var_dump($marker['position']);
					$this->googlemaps->add_marker($marker);										
				}
			//}
			
		// Create the map 
			$data=array();
			$data['map'] = $this->googlemaps->create_map();	

							
		// Load our view, passing the map data that has just been created
			
			$this->load->view('dashboard/dashboard_googlemap_view', $data);
			
	}

QuestionMVCCodeRouting Pin
#realJSOP30-Nov-17 6:39
mve#realJSOP30-Nov-17 6:39 
AnswerRe: MVCCodeRouting Pin
Nathan Minier1-Dec-17 1:43
professionalNathan Minier1-Dec-17 1:43 
GeneralRe: MVCCodeRouting Pin
#realJSOP1-Dec-17 8:13
mve#realJSOP1-Dec-17 8:13 
GeneralRe: MVCCodeRouting Pin
Nathan Minier4-Dec-17 1:15
professionalNathan Minier4-Dec-17 1:15 
QuestionMVC and Custom Routes Pin
#realJSOP30-Nov-17 5:08
mve#realJSOP30-Nov-17 5:08 
AnswerRe: MVC and Custom Routes Pin
Richard Deeming30-Nov-17 8:24
mveRichard Deeming30-Nov-17 8:24 
GeneralRe: MVC and Custom Routes Pin
#realJSOP1-Dec-17 1:04
mve#realJSOP1-Dec-17 1:04 
QuestionHow do I insert dropdown Text, not the value, into the database? Pin
samflex17-Nov-17 9:58
samflex17-Nov-17 9:58 
AnswerRe: How do I insert dropdown Text, not the value, into the database? Pin
W Balboos, GHB6-Dec-17 7:27
W Balboos, GHB6-Dec-17 7:27 
GeneralMessage Closed Pin
24-Jan-19 11:19
Sarah George24-Jan-19 11:19 
GeneralRe: How do I insert dropdown Text, not the value, into the database? Pin
W Balboos, GHB25-Jan-19 1:14
W Balboos, GHB25-Jan-19 1:14 
GeneralRe: How do I insert dropdown Text, not the value, into the database? Pin
Richard Deeming25-Jan-19 2:33
mveRichard Deeming25-Jan-19 2:33 
QuestionOne Step Forward, Two Steps Back - Can't create controller using scaffolding Pin
#realJSOP10-Nov-17 2:04
mve#realJSOP10-Nov-17 2:04 
AnswerRe: One Step Forward, Two Steps Back - Can't create controller using scaffolding Pin
#realJSOP11-Nov-17 11:16
mve#realJSOP11-Nov-17 11:16 
QuestionSys.WebForms.Res is undefined when javascript executed inside updatepanel Pin
Claudio Trenca8-Nov-17 4:38
professionalClaudio Trenca8-Nov-17 4:38 
QuestionMVC5 - Logoff does not work in Chrome Pin
#realJSOP7-Nov-17 1:59
mve#realJSOP7-Nov-17 1:59 
AnswerRe: MVC5 - Logoff does not work in Chrome Pin
Richard Deeming7-Nov-17 2:22
mveRichard Deeming7-Nov-17 2:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.