Tag Info

Hot answers tagged


this is pretty easy! You can use the createLayer function of CartoDB.js two times and add those layers to your map object. Documentation here: http://docs.cartodb.com/cartodb-platform/cartodb-js.html#cartodbcreatelayermap-layersource--options--callback Sample code here (I nested the creation of both layers, but it's not needed): <div ...


Thanks for your answer! The solution I found more appropriate and clean is using Canvas indeed I paste the key part of the code. - Icon variable is the key for Google Map - The call back is a function that takes the variable Marker (since the construction of Canvases can be asynchronous.) var canvas = document.createElement("canvas"); ...

Only top voted, non community-wiki answers of a minimum length are eligible