Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
sview.ctp
<div class="streets view">
<h2><?php echo __('Street'); ?></h2>
<?php $id = "naisyo";?>
<img src="https://maps.googleapis.com/maps/api/streetview?location=<?php echo h($street['Street']['latitude']); ?>, <?php echo h($street['Street']['longitude']); ?>&size=456x456&heading=0&pitch=0&key=<?php echo $id;?>">
<img src="https://maps.googleapis.com/maps/api/streetview?location=<?php echo h($street['Street']['latitude']); ?>, <?php echo h($street['Street']['longitude']); ?>&size=456x456&heading=0&pitch=45&key=<?php echo $id;?>">
<img src="https://maps.googleapis.com/maps/api/streetview?location=<?php echo h($street['Street']['latitude']); ?>, <?php echo h($street['Street']['longitude']); ?>&size=456x456&heading=90&pitch=0&key=<?php echo $id;?>">
<img src="https://maps.googleapis.com/maps/api/streetview?location=<?php echo h($street['Street']['latitude']); ?>, <?php echo h($street['Street']['longitude']); ?>&size=456x456&heading=90&pitch=45&key=<?php echo $id;?>">
<img src="https://maps.googleapis.com/maps/api/streetview?location=<?php echo h($street['Street']['latitude']); ?>, <?php echo h($street['Street']['longitude']); ?>&size=456x456&heading=180&pitch=0&key=<?php echo $id;?>">
<img src="https://maps.googleapis.com/maps/api/streetview?location=<?php echo h($street['Street']['latitude']); ?>, <?php echo h($street['Street']['longitude']); ?>&size=456x456&heading=180&pitch=45&key=<?php echo $id;?>">
<img src="https://maps.googleapis.com/maps/api/streetview?location=<?php echo h($street['Street']['latitude']); ?>, <?php echo h($street['Street']['longitude']); ?>&size=456x456&heading=270&pitch=0&key=<?php echo $id;?>">
<img src="https://maps.googleapis.com/maps/api/streetview?location=<?php echo h($street['Street']['latitude']); ?>, <?php echo h($street['Street']['longitude']); ?>&size=456x456&heading=270&pitch=45&key=<?php echo $id;?>">
<dl>
<dt><?php echo __('Id'); ?></dt>
<dd>
<?php echo h($street['Street']['id']); ?>
&nbsp;
</dd>
<dt><?php echo __('Latitude'); ?></dt>
<dd>
<?php echo h($street['Street']['latitude']); ?>
&nbsp;
</dd>
<dt><?php echo __('Longitude'); ?></dt>
<dd>
<?php echo h($street['Street']['longitude']); ?>
&nbsp;
</dd>
<dt><?php echo __('Created'); ?></dt>
<dd>
<?php echo h($street['Street']['created']); ?>
&nbsp;
</dd>
<dt><?php echo __('Modified'); ?></dt>
<dd>
<?php echo h($street['Street']['modified']); ?>
&nbsp;
</dd>
</dl>
</div>
<div class="actions">
<h3><?php echo __('Actions'); ?></h3>
<ul>
<li><?php echo $this->Html->link(__('Edit Street'), array('action' => 'edit', $street['Street']['id'])); ?> </li>
<li><?php echo $this->Form->postLink(__('Delete Street'), array('action' => 'delete', $street['Street']['id']), array('confirm' => __('Are you sure you want to delete # %s?', $street['Street']['id']))); ?> </li>
<li><?php echo $this->Html->link(__('List Streets'), array('action' => 'index')); ?> </li>
<li><?php echo $this->Html->link(__('New Street'), array('action' => 'add')); ?> </li>
</ul>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.