Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to define big4k #182

Open
martinx73 opened this issue Apr 24, 2018 · 2 comments
Open

how to define big4k #182

martinx73 opened this issue Apr 24, 2018 · 2 comments

Comments

@martinx73
Copy link

martinx73 commented Apr 24, 2018

maplace.js is awesome
but i have aproblem to load big data
help please !
mi code is very simple:

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

<!DOCTYPE html>
<html>
<head> 
<script src="http://maps.google.com/maps/api/js?libraries=geometry&v=3.31&key=xxxxx">
</script>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="maplace.min.js"></script>

<script type="text/javascript">
$(function() {
	new Maplace({
   		locations: big4k,
   		map_div: '#gmap-big',
   		controls_type:'dropdown',
		type:'marker',
   		controls_title: 'Seleccione Distrito:',
   		view_all_text:'ver todo'
	}).Load();	
});
</script>

<style>
.gmap {
        height: 600px;
        width: 600px;
        padding: 3px;
        border: 5px solid #ddd;
        font-size: 90%;
}
</style>
</head>

<body>
<div id="gmap-big" class="gmap"></div>
</body>
</html>

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

i got error "SCRIPT5009: 'big4k' is not defined"
i dont know hot to use 4k.js file
thanks in advance

@Carlo-F
Copy link

Carlo-F commented Aug 2, 2019

Just include the 4k.js file before initializing the Map in order to access the variable big4k

@martinx73
Copy link
Author

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants