Click here to Skip to main content
15,913,685 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Captcha and MVC Pin
Nathan Minier27-Dec-17 6:49
professionalNathan Minier27-Dec-17 6:49 
QuestionOverriding model in Magento 2 Pin
suthan alley21-Dec-17 17:24
suthan alley21-Dec-17 17:24 
QuestionMessage Removed Pin
20-Dec-17 23:16
Member 1352233120-Dec-17 23:16 
AnswerMessage Removed Pin
31-Dec-17 19:57
professionalWordPress Experts31-Dec-17 19:57 
QuestionDisplay Derived Objects In Swagger Example Values Pin
Liagapi15-Dec-17 19:21
Liagapi15-Dec-17 19:21 
SuggestionRe: Display Derived Objects In Swagger Example Values Pin
Richard MacCutchan15-Dec-17 22:43
mveRichard MacCutchan15-Dec-17 22:43 
AnswerRe: Display Derived Objects In Swagger Example Values Pin
VenkatReddy.RC3-Jan-18 23:01
professionalVenkatReddy.RC3-Jan-18 23:01 
Questionan unusual problem of building multiple sites towards a longer term goal Pin
symfonycoda12-Dec-17 8:48
symfonycoda12-Dec-17 8:48 
AnswerRe: an unusual problem of building multiple sites towards a longer term goal Pin
W Balboos, GHB29-Dec-17 6:02
W Balboos, GHB29-Dec-17 6:02 
QuestionHow can i disable add to cart button in Magneto 2? Pin
suthan alley10-Dec-17 19:41
suthan alley10-Dec-17 19:41 
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
professional#realJSOP10-Dec-17 3:56 
AnswerRe: Bootstrap Carousel not carouselling Pin
#realJSOP10-Dec-17 5:38
professional#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
professional#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
professional#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
professional#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
professional#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
professional#realJSOP1-Dec-17 1:04 

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.