Showing 3 of 3 total issues
Function addNeighborhoods
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addNeighborhoods(map) {
var $product = $("select#event_product_type").children(":selected").text();
var $cityId = $("select#event_city_id :selected").val();
$.ajax({
url: '/neighborhoods.json',
Function success
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
success:function(neighborhoods) {
map.addSource('neighborhoods', {
type: "geojson",
data: {
type: "FeatureCollection",
Function getEvents
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getEvents(map) {
var $wheel = $("#spinning-wheel")
var $cityId = $("select#event_city_id :selected").val();
var $category = $("select#event_category_id :selected").val();
$wheel.show();