2

I'm working with the code example shown here http://bl.ocks.org/javisantana/6029822 When I substitute Javi's viz for a namedmap map type viz it fails with the following error "TypeError: r is not a constructor cartodb.js:18" Swapping out the js include from the dev version to the production version the map loads, but the info windows fails populate or get fully styled.

My Question - Does anyone see what might need to be changed in order for this code to function properly with namedmaps? If not any help in understanding the difference between namedmap and layergroup type vizs would be very helpful.

  • Can you please show how you initialize the named map? – Challe Oct 23 '14 at 4:44
  • Please, could you share your entire code? – Xatpy Dec 23 '14 at 16:54
1

The main thing you need to do is declare your interactivity variables in your config file when you first create your named map.

Here's an example of a named map with infowindows on specific variables: http://bl.ocks.org/ohasselblad/d1a45b8ff5e7bd90cd68

The config file is also on that page. It's based on earthquake data from here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.