Displaying 10 results from an estimated 10 matches for "latlng".
Did you mean:
lating
2007 Oct 16
3
can''t define custom GIcon
...p_none")
infoString = "Friendly Name: "+result.friendly_name+
"<br/>MAC: "+result.mac.to_s+
"<br/><br/><a href=''/stats/table''>Table View</a>"
marker = GMarker.new(latlng, :info_window => infoString, :icon =>
"ap_none")
point = GLatLng.new(latlng)
@gmap_markers << marker
@map.center_zoom_init(bounding_box_center(@gmap_markers), 15)
@map.overlay_global_init(GMarkerGroup.new(true, @gmap_markers),"NOI")
In my vi...
2008 Mar 03
0
Routing through LatLng points and other stuff
Hi to all!
Well, I''ve been trying to find a solution to route using known LatLng points
- I already have the location position, all I needed was the actual route,
so I''ve put together an addition to the "mapstraction-route.js". I''ve listed
it below, so maybe it would not be a bad idea to merge it to the trunk...
Also, I have a few other questions re...
2014 Oct 16
2
RCharts+Leaflet+Shiny
...;Long'),
# dest=output_geofile),
data_,
onEachFeature = '#! function(feature, layer){
layer.bindPopup(feature.properties.popup)
} !#',
pointToLayer = "#! function(feature, latlng){
return L.circleMarker(latlng, {
radius: 6,
fillColor: feature.properties.fillColor ||
'blue',
color: '#333',
weight: 1,...
2010 Nov 08
1
API Google MAPS
...ttp://ajax.googleapis.com/ajax/
libs/jquery/1.4.1/jquery.min.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?
sensor=false"></script>
<script type="text/javascript">
function initialize() {
var latlng = new google.maps.LatLng(28.142722, -15.448609);
//Creatin a MapOptions object with tthe required properties
var myOptions = {
zoom: 3,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
//Creating the map
var map = new google.maps.Map(document.getElementBy...
2014 Oct 15
2
RCharts+Leaflet+Shiny
...leafletR::toGeoJSON(data_,
dest=output_geofile),
onEachFeature = '#! function(feature, layer){
layer.bindPopup(feature.properties.popup)
} !#',
pointToLayer = "#! function(feature, latlng){
return L.circleMarker(latlng, {
radius: 6,
fillColor: feature.properties.fillColor ||
'blue',
color: '#333',
weight: 1,...
2007 Nov 05
1
marker event listeners
I''d like to add an event listener for dragging markers, but it looks
like YM4R GM (and Mapstraction) doesn''t support this. I need an init like:
marker = new GMarker(...
GEvent.addListener(marker, "dragend", function() { })
but the current setup makes "anonymous" markers - never creates variable
that can be used to access them. Has anyone thought about
2011 Feb 08
0
favorite pattern for adding functionality to an AR?
Do you have a preferred programming pattern for adding functionality to
an ActiveRecord? As an example, say I have some gnarly trig functions
for distance and bearing between pairs of latitude and longitude:
=== file: latlng.rb
module LatLng
def haversine_distance(lat1, lng1, lat2, lng2)
...
end
def bearing(lat1, lng1, lat2, lng2)
...
end
=== EOF
... and I want to mix in haversine_distance(other_ar) and
bearing(other_ar) methods into an ActiveRecord. The shim functions
would look like this:
===
def haversine_...
2009 Jun 01
0
[mapstraction commit] r12 - Implemented most Cloudmade functions. Still requires image, tile and KML/GeoRSS overlays
...unction( bbox ) {
@@ -136,15 +145,16 @@
// NE and SW points from the bounding box.
var ne = bbox.getNorthEast();
var sw = bbox.getSouthWest();
- var zoom;
-
- // TODO: Add provider code
+ var zoom = map.getBoundsZoomLevel(new
CM.LatLngBounds(sw.toProprietary(this.api), ne.toProprietary(this.api)));
return zoom;
},
setMapType: function(type) {
var map = this.maps[this.api];
+
+ // TODO: Are there any MapTypes for Cloudmade?
+
switch(type) {...
2007 Nov 12
0
info window tabs
Hi,
I am having some trouble getting the :info_window_tabs option working, and
was wondering if anybody else has used this.
I am trying this:
marker = GMarker.new(latlng, :info_window_tabs => {title => infoString})
The API says that you should pass a hash, so this is what I am trying. Is
there something that I''m missing here? It seems like it should be pretty
straightforward.
Thanks,
Simon
-------------- next part --------------
An HTML attachme...
2007 Oct 17
0
GMarkerGroup center_and_zoom_on_markers problem
Hi,
I found the funcitoned mentioned in title (center_and_zoom_on_markers) but
am having troubles getting it working.
I have several markers being added to an array (@gmap_markers = []) in the
following manner:
marker = GMarker.new(latlng, :info_window => infoString, :icon => my_icon)
@gmap_markers << marker
I am then trying to do the following:
group = GMarkerGroup.new(true, @gmap_markers)
@map.overlay_global_init(group,"NOI")
@map.record_init group.center_and_zoom_on_markers
But I get the following error:...