Tag Info

New answers tagged

0

you should try to add restrictedExtent to map options.


0

Am not used to Java but I think the Google API's coordinate system can be transformed on render to suite the system of interest.There are two ways to go around this issue: 1. Make sure all the layers in your application are on the same projection. 2. Redefine the projection of one layer to suit another.Example: If your point layers is in EPSG:4326 and want ...


0

One thing that's wrong is your first and last coordinates need to be the same for a polygon. I'd get rid of your first two points (since lat and long are reversed). I pasted a fixed version for you here jsbin.com fixed json


0

you can get an example here. In the code I'm using two independent queries and using two different layers. You'd just need to reproduce it once. Copying the code also here for the record: it includes the query that CartoDB uses to cluster but customized to my table "populated_places" and to my column "megacity". You'd need to change that for yours to ...


0

Figured out how to integrate google's api, an autocomplete search bar, and add a pin onto the appropriate part of the map in this example.


1

You could issue a AJAX request to your PHP service. In Javascript, add an event listener to your radio buttons that listens for change events. In the listener, issue the AJAX request to your PHP service. Handle the response of the PHP server in the AJAX callback and update your map.


0

I think you can use the google.maps.geometry.spherical.computeHeading method. See documentation here: https://developers.google.com/maps/documentation/javascript/geometry#Navigation


0

You can extend the functionality of the cdb.geo.ui.Search (the searchbox) element (example here), but as you're going to create a complete new functionality for it, I would recommend you to add a textbox in your HTML code and set a new custom functionality for it. Your call to Google/Bing/any geocoder will return some bounds or some specific coordinates for ...


0

I came across this issue during january. I solved it with the logic "if drawing mode is already null, then don't try to set it to null again". google.maps.event.addListener(drawingManager, 'polygoncomplete', function (polygon) { if (drawingManager.getDrawingMode() === null) { return; } else { ... do your stuff ... } }); Usually ...


2

If you draw an element (or a collection of elements) from your own data, there are three potential scenarios: If you're dealing with markers, polylines, polygons. circles, rectangles or features, you don't send any data to Google. All those elements reside in their own layer, overlayed on top of the map. If you need to draw a KML Layer, Google will load ...


-1

If you apply a function jitter to your data points, it will provide that effect.



Top 50 recent answers are included